Topic: Plain text lost in elements like form that don't allow direct text
Balance switched on:
Config:
$htmLawed_config = array('comment'=>1, //remove comments
'keep_bad'=>6,
'balance'=>1,//turn off tag-balancing (config['balance']=>0). That will not introduce any security risk; only standards-compliant tag nesting check/filtering will be turned off (basic tag-balance will remain; i.e., there won't be any unclosed tag, etc., after filtering)
'tidy'=>1,
'elements' => "* -script",
'schemes'=>'href: file, ftp, http, https, mailto; src: cid, data, file, ftp, http, https; *:file, http, https',
'hook_tag' =>"hl_email_tag_transform",
);Example:
<BLOCKQUOTE> <DIV><BR></DIV>Other Text (vanished)<BR>Some Text<BR></BLOCKQUOTE>Result:
<blockquote>\n <div>\n <br />\n </div>\n <div>\n <br />\n Some Text<br />\n </div>\n</blockquote>Tested on Testpage as well, no special config used there. Same result.