I noticed that some of my teasers were not closing HTML tags. This would result in the HTML markup cascading down the page- i.e. every node below would appear in bold as the bold tag was not closed (the teaser break came before the tag was closed)

I tried to edit these teasers to put in the close tags. However, the teaser was then processed so that all markup was converted to escape characters, so that the HTML markup itself appears in the teaser view. Note that the input type is set to "Full HTML."

For example, what should appear as:

Only local images are allowed.

Roboticist Hod Lipson wants you to stop shopping and use his portable 3-D printer to make your own stuff

(note that the image tags don't show up here because the drupal.org's filtered html does not allow it, but you get the idea)

appears in the teaser view as:

<img class="left" alt="desktop%20factory.jpg" src="http://www.treehugger.com/desktop%20factory.jpg" width="250" height="314" />

<p>Roboticist Hod Lipson wants you to stop shopping and use his portable 3-D printer to make your own stuff</p>

because the html in the teaser view is converted to the escape characters:

&lt;img class=&quot;left&quot; alt=&quot;desktop%20factory.jpg&quot; src=&quot;http://www.treehugger.com/desktop%20factory.jpg&quot; width=&quot;250&quot; height=&quot;314&quot; /&gt;

&lt;p&gt;Roboticist Hod Lipson wants you to stop shopping and use his portable 3-D printer to make your own stuff&lt;/p&gt;

(Let me know if you are having trouble understanding my explanation)

Comments

vito_swat’s picture

I'm not reporting escaping of the characters after editing teasers (which I'm doing ocasionally) but not closing HTML tags is a drupal core thing. See Superteaser module to solve this problem. In issue list there's 5.0 development version. I didn't tried it so I don't know is it working.

Ashraf Amayreh’s picture

You could try out this module. I'm not totally sure it could help or not, but it may.

http://drupal.org/project/htmlcorrector

nirad’s picture

the HTML parsing problem may be something wrong with my Drupal installation, not with the Aggregation module. I'll let respond here if I resolve it.

Ashraf Amayreh’s picture

Status: Active » Closed (fixed)

I'm closing this. Please let me know if you have any updates here.

nirad’s picture

i used superteaser and it works great. I'm still not sure why the problem with editing a feed item occurs, though i can edit them through the database (via PHPmyAdmin) when I need to, which is now very rarely.

If nobody else has had problems editing a feed item, then I guess you can close it. It's probably something unique to my installation and it's not that important for me to trouble-shoot it.

vito_swat’s picture

Title: HTML tags not closed in teaser, HTML does not properly parse when teaser is edited » Escaping HTML tags in teaser

Solution provided here.