function html_entity_decode replaced with decode_text_content
function decode_dynamic_symbols added