watson.html.entities

watson.html.entities.decode(string)[source]

Decodes html entities.

Returns:string with html entities decoded.
watson.html.entities.encode(string)[source]

Encodes html entities.

This is a little more full featured than html.escape, as it will replace all charactes from codepoint2name.

Returns:string with replaced html entities.