*/
function htmlProtectFromTextism($input)
{
- return textProtectTag("<table\s*?[^>]*>", "<\/table>", "{NOP:", ":NOP}", $input);
+ return textProtectTag("<protect>", "<\/protect>", "{NOP:", ":NOP}", $input);
}
*/
function htmlUnprotectFromTextism($input)
{
- return textUnprotectTags("{NOP:", ":NOP}", $input);
+ $input = textUnprotectTags("<p>\s*{NOP:", ":NOP}\s*<\/p>", $input);
+ $input = textUnprotectTags("{NOP:", ":NOP}", $input);
+ return preg_replace('/<\/?protect>/', "", $input);
}