Warning: DOMDocumentFragment::appendXML() [domdocumentfragment.appendxml]: Entity: line 1: parser error : EntityRef: expecting ';' in word_link_replace_text() (line 211 of /var/www/pharma/drupal-7.12/sites/all/modules/contrib/word_link/word_link.module).

Theres several variations of this type error in my logs for a single node but this one appears to be the most prevalent of them.

CommentFileSizeAuthor
#4 7.x-1.0-ampersant-escape.patch755 bytesparavibe

Comments

paravibe’s picture

Hello apmsooner,

Could you send me a copy of your node text and say which words you added? Contact me through contact form.

apmsooner’s picture

Hey, I sent you emails through the contact form. I have tracked down exactly whats causing the errors. If there is html such as &, i get the errors on the page. When i deleted that code, the errors go away. I did this on multiple instances and all seemed to be causing the problem.

I think because this module is using XML, you need to escape all of the following characters and perhaps that fixes the problem?

"   "
'   '
<   &lt;
>   &gt;
&   &amp;

I tested all those characters and the only one causing the error is &amp;. Sounds like an easy fix...

apmsooner’s picture

paravibe’s picture

StatusFileSize
new755 bytes

Thanks for help.
Here is a patch to fix this error.
And it will be applied in next release.

paravibe’s picture

Priority: Major » Normal
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.