Open-Ended HTML Tags Closed Automatically?

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
permalink
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Feb 19, 2008 5:36 pm

Open-Ended HTML Tags Closed Automatically?

Post by permalink » Tue Feb 19, 2008 6:12 pm

I was originally going to ask if there was a function that would close any open tags that a module were to unintentionally/unavoidably produce. But after playing around with an extension I am writing, it appears that this is done automatically; however I would like to call the function, so as to have control over the specific place this happens.

Here is the scenario: I am building a component that uses a substr of the introtext of articles to shorten them for list display. Sometimes there are HTML tags in the text, and often times shortening the introtext cuts in the middle of the tags. As I mentioned it appears that this is done automatically; however I would like to call the function, so as to have control over the specific place this happens. Please confirm for me that I am not just seeing things and help me understand how to call this function. Thanks

permalink
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Feb 19, 2008 5:36 pm

Re: Open-Ended HTML Tags Closed Automatically?

Post by permalink » Mon Feb 25, 2008 2:24 am

I think Firefox is closing the hanging tags automatically, I do not see the close tags in ie.


Post Reply