yasuki_core.install.utils.process_string#

process_string(s)[source]#

Clean up whitespace and special characters from scraped HTML text.

Normalizes non-breaking spaces, newlines, and multiple spaces.

Parameters:
sstr

Raw string from HTML

Returns:
cleanedstr

String with normalized whitespace