<embed> getting converted to <ibed>

starb
08-09-16 17:51
@michael
I had to modify the 'tidyH' function to make embed tags work, by removing the wildcard tag remover:

just comment the first line:
 // h=h.replace(/<(\w+)[^>]*>\s*<\/\1>/gi, ""); //empty tag <([^>]+)>\s*<\/\1>

and it should work. However, people will be allowed to edit pure HTML tags in their content but it seems that it is what you want.

regards,
SB
Lord_G
08-07-23 15:04
Sorry for double post, but the I made two pre tags instead of one. To be perfectly clear: both lines are needed instaed of the old one.
Lord_G
08-07-23 15:03
The problem is in TidyD function:

change this line:

h=h.replace(/<(\/?)em([^>]*)>/gi, "<$1I$2>");

to:
 h=h.replace(/<(\/?)em ([^>]*)>/gi, "<$1I $2>");
 h=h.replace(/<(\/?)em>/gi, "<$1I>");
<embed> getting converted to <ibed>
Michael Palladino
08-06-30 18:40
When I paste a standard YouTube <object><embed> tag into the HTML view of Whizzywig, then save, it converts the <embed> tags to <ibed> (in other words, it thinks it's replacing <em> with <i>. Is there a way to stop that from happening?

Michael Palladino, mpal@central-360.com

New Message


Your message

Type in these letters/numbers Type in this code (prevents automated submissions).
Can't make it out? Double click it for new code.


hide menu | Show caps
Google