Skip to main content
Participating Frequently
March 17, 2008
Question

pointy backets and pound signs in strings

  • March 17, 2008
  • 2 replies
  • 284 views
Pound signs and pointy brackets in string input are sometimes being misinterpreted as Coldfusion code. I am trying to make a javascript function to make it impossible to put 1 of those characters in but want to know if there is something that can be done on the server side to stop this problem.
Thank you very much.
    This topic has been closed for replies.

    2 replies

    Inspiring
    March 17, 2008
    If you want to not have those characters at all, there's all kinds of things you can do server side. You just have to decide how you want to handle it and then write the appropriate code, in that order.
    Inspiring
    March 17, 2008
    bill0 wrote:
    > Pound signs and pointy brackets in string input are sometimes being
    > misinterpreted as Coldfusion code. I am trying to make a javascript function to
    > make it impossible to put 1 of those characters in but want to know if there is
    > something that can be done on the server side to stop this problem.
    > Thank you very much.
    >
    >


    HTMLcodeFormat() and HTMLeditFormat() functions will escape all "<" and
    ">" angle brackets as &lt; and &gt; which will then not be interpreted
    as code of any sort.