Problems with $ HTML variable being converted in FAQ items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vBadvanced
    Senior Member
    • Oct 2001
    • 269

    Problems with $ HTML variable being converted in FAQ items

    Not sure if this has been addressed before since "faq" seems to be under the search word length. I've added some new FAQ items though and need to use the $ symbol within some of them (ex: $forumpath) since they're dealing with common PHP questions. This works fine when first saving the item, but when I go back to edit it the '$' code is being converted to '$' symbols in the form and thus changing my text into variables when the form is saved. Is there any way around this so that I won't have to remember to search for any $ marks and replace them with $ each time I edit a FAQ item?
    Spread Peace,
    Brian Gunter

    vBadvanced | EDMPlanet
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    You can use a backslash before the $ symbol to make it so the variable is not parsed:

    Code:
    \$varname

    Comment

    • vBadvanced
      Senior Member
      • Oct 2001
      • 269

      #3
      Ahhh, didn't even think about that. Thank you sir.
      Spread Peace,
      Brian Gunter

      vBadvanced | EDMPlanet

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...