<s> from houdini import escape_html <EOL> from catsup . utils import to_unicode <EOL> from catsup . reader . html import html_reader <EOL> def txt_reader ( path ) : <EOL> post = html_reader ( path ) <EOL> content = post . content . encode ( "<STR_LIT:utf-8>" ) <EOL> content = escape_html ( content ) <EOL> content = content . replace ( <EOL> "<STR_LIT:\n>" , <EOL> "<STR_LIT>" <EOL> ) <EOL> post . content = to_unicode ( content ) <EOL> return post </s>
