Задать вопрос

Тел: +7 965 3737 888

446

Просмотров

1

Ответов

convert plain text to html

<p>Convert plain text to html. For example:</p>
text="""aabhttp://www.example.com http://www.example.com

<p>http://www.example.com &lt;&lt;&lt; [&lt;aaaa&gt;&lt;/aaaa&gt;]
"""
    print plaintext2html(text)</p>
<p>It can convert url text to html href. And it also can convert space to &amp;nbsp;. So if you paste python code, the indent will not lost at all. Default it'll convert t to 4 spaces.</p>

Вопрос полезен? Да0/Нет0
file_2655.py(1.0Кб)
None

Ответы (1):

Ответhugotox:20.07.2012
Ответ полезен? Да0/Нет0

you have a semicolon at the end of line 17. Seems like a syntax error