This topic is locked

Don't display HTML tags on List page

11/15/2006 9:02:38 PM
ASPRunnerPro General questions
C
ChrisC author

Dear Support
I've tweaked the code of '_aspfunctions.asp' to change a 'text area' into a 'Rich Text' editor on an edit page.
' returns true if textarea uses RichTextEditor

Function UseRTE(strField)

UseRTE = false

if strField="END_COMMENTS" then UseRTE = true end if

...

..

.

End Function
I can't work out what must change to allow the corresponding '_list.asp' page to not display HTML tags (e.g.: <P>Christmas Day is the worst </P>) .
I can't rebuild from ASPrunner with the required change made as I've made too many manual code changes.
Do I need to only change as shown below or must something else change?
' returns field format

function Format(strField)
Format = FORMAT_NONE

if strField="END_COMMENTS" then Format = "HTML" end if

....

..

.

end function
All suggestions greatly appreciated.
Chris

Sergey Kornilov admin 11/16/2006

Chris,
what do you mean "page to not display HTML tags"?
List page displays whatever content of the field is. You cannot strip HTML tags from the field content.

C
ChrisC author 11/16/2006

Hi Sergey
Thanks for your reply.
Chris