I had one of my apps crash today because a user typed a # into a form field and submitted it to the database (go ahead, laugh). It submitted fine, but now when the user goes in to make changes, it throws an error due to the non-balanced #.
I had wrapped the output in an #htmleditformat()# tag, but it didn’t handle the #. I could do a replace, but the html version (#) also contains a single #. I could replace the # symbols with ##, but if the user edits and re-submits, I might get #### out of that.
How does everyone else handle this?