Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Displaying info in input box messing up

Guest
Mar 17, 2009 Mar 17, 2009
How can I make <cfinput type="text" name="dimension" maxlength="100" value="#product_dimensions#"> display my information properly if I have a " in the database field that get's pulled I only get the information prior to that ".
354
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 17, 2009 Mar 17, 2009
Escape that ["] so that the HTML engine does not think it is a control
character but rather recognizes it for the data it is supposed to be.
This is done by doubling it in HTML, IIRC. I find it hard to keep track
of all the different ways there are to escape data between the different
technologies used to build a web page. Thus I love Google when I need
to refresh my memory.

You can do it manually with some basic string processing or use the
htmlEditFormat(), htmlCodeFormat() or xmlFormat...
Translate
LEGEND ,
Mar 17, 2009 Mar 17, 2009
Escape that ["] so that the HTML engine does not think it is a control
character but rather recognizes it for the data it is supposed to be.
This is done by doubling it in HTML, IIRC. I find it hard to keep track
of all the different ways there are to escape data between the different
technologies used to build a web page. Thus I love Google when I need
to refresh my memory.

You can do it manually with some basic string processing or use the
htmlEditFormat(), htmlCodeFormat() or xmlFormat() functions designed for
this type of functionality.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 17, 2009 Mar 17, 2009
LATEST
Ian Skinner wrote:
> This is done by doubling it in HTML, IIRC. ... Thus I love Google when I need
> to refresh my memory.

OR it is &quote;

Told you I get confused!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources