Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Quote

Posted 26 Oct 2004 11:54:33
1
has voted
26 Oct 2004 11:54:33 D J posted:
I writing a forum and it's almost finished but now i need to make a quote possibility and i can't get it working. Need some help.....

How do you replace the [ quote],[/ quote] tags

Thanks David

Edited by - d-dayve on 27 Oct 2004 14:29:58

Edited by - d-dayve on 27 Oct 2004 14:30:31

Replies

Replied 16 Nov 2004 15:50:18
16 Nov 2004 15:50:18 myke black replied:
If what you want is to convert the [ quote] tags in a string then try using :

<pre id=code><font face=courier size=2 id=code>
dim strText as String
strText = request.form("message"
strText = replace(replace(strText,"[ quote]","&lt;blockquote&gt;","[/ quote]","&lt;/blockquote&gt;"
</font id=code></pre id=code>

or better still, create a regular expression to handle converting square bracketed tags into html tags that will handle different types of forum code with the same routine.

does this answer your question?

Edited by - mykeblack on 16 Nov 2004 15:54:58

Reply to this topic