We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Great application - thanks. There is a problem when you have < in string:
<
$html='<p>something < something </p>; \PhpOffice\PhpWord\Shared\Html::addHtml($section, $html);
It'll break the xml structure for docs. Possible solution is to change addHTML method:
// Load DOM $dom = new \DOMDocument(); $dom->preserveWhiteSpace = true; $dom->loadXML($html,LIBXML_NOCDATA);
With this replacement user can send <![CDATA[_lt_]]> instead of < like this:
<![CDATA[_lt_]]>
$html='<p>something <![CDATA[_lt_]]> something </p>; \PhpOffice\PhpWord\Shared\Html::addHtml($section, $html);
and it'll work ok.
Maybe there is some better solution but this will work for now.
Thanks
The text was updated successfully, but these errors were encountered:
#671 (comment).
Sorry, something went wrong.
No branches or pull requests
Hi,
Great application - thanks.
There is a problem when you have
<
in string:It'll break the xml structure for docs. Possible solution is to change addHTML method:
With this replacement user can send
<![CDATA[_lt_]]>
instead of<
like this:and it'll work ok.
Maybe there is some better solution but this will work for now.
Thanks
The text was updated successfully, but these errors were encountered: