Function vanilla_tinymce_fixpdiv
Takes a string which is meant to have been produced by TinyMCE after the shortcodes have been applied and replaces P elements that erroneously enclose DIV elements. For instance, TinyMCE will wrap a [gallery...] shortcode inside a P element and then the resulting DIV of the gallery will be found inside that P, which is just not very nice.
License:
GPLv3
Author: Nevma, http://www.nevma.gr, info@nevma.gr
Located at tinymce/vanilla-tinymce.php
Author: Nevma, http://www.nevma.gr, info@nevma.gr
Located at tinymce/vanilla-tinymce.php
Parameters summary
string |
$content |
The input string to fix. |
Return value summary
string
|
The input string fixed. |