html-encode

How do I perform HTML decoding/encoding using Python/Django?

How do I perform HTML decoding/encoding using Python/Django? Question: I have a string that is HTML encoded: ”’&lt;img class=&quot;size-medium wp-image-113&quot; style=&quot;margin-left: 15px;&quot; title=&quot;su1&quot; src=&quot;http://blah.org/wp-content/uploads/2008/10/su1-300×194.jpg&quot; alt=&quot;&quot; width=&quot;300&quot; height=&quot;194&quot; /&gt;”’ I want to change that to: <img class=”size-medium wp-image-113″ style=”margin-left: 15px;” title=”su1″ src=”http://blah.org/wp-content/uploads/2008/10/su1-300×194.jpg” alt=”” width=”300″ height=”194″ /> I want this to register as HTML so that it …

Total answers: 15