Skip to main content
November 4, 2011
Question

Code getting stripped from post

  • November 4, 2011
  • 2 replies
  • 2034 views

Anyone know how to preveent code from being stripped from post when it is submitted?

    This topic has been closed for replies.

    2 replies

    Inspiring
    November 4, 2011

    Ola20 wrote:

    Anyone know how to preveent code from being stripped from post when it is submitted?

    I've never had a problem simply either typing the code in, or pasting it from somewhere else.

    Test:

    <cfset testMsg = "I can paste code just fine">
    <cfoutput>#testMsg#</cfoutput>

    What I have heard people having problems with is including code in an email response to an existing posting.  The solution to that is not to do that; post via the web UI instead.

    --

    Adam

    Participating Frequently
    November 4, 2011

    What kind of code. What do you mean stripped? Example?

    November 4, 2011

    I copy and past my code (Coldfusion) from DreamWeaver to the editor and it strips the majority of it.

    See example below.                                                                                                                             #twoKiloUpdateBG(1,7)#

    Owainnorth
    Inspiring
    November 4, 2011

    Paste it into notepad first then copy it back out to clear any HTML formatting that's on the clipboard.