Words in glossary break URL links in page code displayed by a browser
One of our users tried to insert a movie in a FAQ record without success.
After an analysis, we found that
- As we knew, the editor uses standard XHTML so it cleans the code removing (in this case) the “embed” tag - a good feature. "Screenshot 1";
- The code generated by TinyMCE - using the standard tag “object” - seems OK. "Screenshot 1";
- The resulting page is not rendered correctly. "Screenshot 2";
- phpMyFAQ replace the original code by inserting “abbr” tags (and content) if it found a term present on the glossary, thus breaking the code.
Affected terms (examples): “http” ; up ; png, ... "Screenshot 3";
Screenshot 1 - Source code cleaned by TinyMCE
Screenshot 2 - Resulting page displayed on the browser
Screenshot 3 -Code present on the displayed page – changed by phpMyFAQ: introduced “abbr” tags in “http” ; “up” ; “png”, …