-bash-3 cd code htmlcleaner -bash-3 mysql -e set names utf8 select bod

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
-bash-3.2$ cd ~/code/htmlcleaner/
-bash-3.2$ mysql -e 'set names utf8; select body from comments where id = 3495'
+--------------------------------------------------------------------------------------------------+
| body |
+--------------------------------------------------------------------------------------------------+
| вот что удалось найти:
http://www.orientalnitanec.cz/Def/Eng/Default.asp?S=
|
+--------------------------------------------------------------------------------------------------+
-bash-3.2$ python -c 'from cleaner import clean_html; print clean_html(""" вот что удалось найти:
>
> http://www.orientalnitanec.cz/Def/Eng/Default.asp?S=
>
> """)'
вот что удалось найти:<br /><br /><a href="http://www.orientalnitanec.cz/Def/Eng/Default.asp?S=" rel="nofollow" target="_blank">http://www.orientalnita.../Def/Eng/Default.asp?S=</a><br /><br />