Table of Contents Pro
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Mark J. Reeves
TOC Pro used with Stash and Wygwam - lost text encoding
Support Request
grzegorz_d
|
Posted: 05 May 2014 04:48 PM |
|
|
|
Hi Mark,
I tried to use your excellent plugin in my new project and I noticed that if I can wrap toc tags this way
{exp:stash:parse process=“end”}{exp:toc:article}{page_content}{/exp:toc:article}{/exp:stash:parse}
it gives me the PHP errors:
” A PHP Error was encountered
Severity: Warning
Message: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 23
Filename: toc/pi.toc.php
Line Number: 42”
and
“Severity: Warning
Message: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 23
Filename: toc/pi.toc.php
Line Number: 123”
Also the stash injected content looses text encoding.
Is there a way to solve this?
Regards
|
|
|
Mark J. Reeves
|
Posted: 05 May 2014 04:51 PM |
# 1
|
|
Developer
|
Hi there!
I’m not sure of the implications of using Stash, but you should know that the add-on loads the contents of the WYSIWYG field - or whatever’s between its tags—into an XML DOM to generate the list of links. So there are any extra or unclosed tags in your markup, it’s going to blow up with an XML error.
Hope that helps!
Mark
|
|
|