Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Eliminating Specific HTML Tags

Posted 09 Mar 2002 01:33:40
1
has voted
09 Mar 2002 01:33:40 Jeremy Conn posted:
OK - I have a dynamic site that allows the user to add 'news' through the PD-OnLine HTML interface. Easy so far...

Problem: The users are copying-pasting from some Office app that keeps adding <p></p> tags surrounding the text. When this is displayed, it skews the alignment due to the tags.

Options: I want to eliminate only the <p></p> tags from showing, allowing all other HTML. Should I do this on the display page or at submission? How?

Thanks in advance...

Replies

Replied 09 Mar 2002 14:30:33
09 Mar 2002 14:30:33 Viktor Farcic replied:
Assuming you're using ASP...
Use Replace - Replace(Something, "<p>", "" and Replace(Something, "</p>", ""

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
OK - I have a dynamic site that allows the user to add 'news' through the PD-OnLine HTML interface. Easy so far...

Problem: The users are copying-pasting from some Office app that keeps adding &lt;p&gt;&lt;/p&gt; tags surrounding the text. When this is displayed, it skews the alignment due to the tags.

Options: I want to eliminate only the &lt;p&gt;&lt;/p&gt; tags from showing, allowing all other HTML. Should I do this on the display page or at submission? How?

Thanks in advance...


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Viktor Farcic

TalkZone Manager

Reply to this topic