Textarea and formatting

Discussion in 'HTML & Website Design' started by Ludus, May 12, 2008.

  1. #1
    I have a textarea that generates dinamically a text.
    In the textarea there's a formatted text, such as:

    <h1>title</h1>
    <p>bla bla bla</p>
    Code (markup):
    The problem is that the page is not validated, because the tag p and h1 are not allowed within a textarea.

    Suggestions about solving this problem?
     
    Ludus, May 12, 2008 IP
  2. mahendras

    mahendras Peon

    Messages:
    597
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should use wyswyg editors like FCK editor to over come the issue.
    Such editors automatically convert formatting into html and user will love to use it.
     
    mahendras, May 12, 2008 IP
  3. wdstuff54

    wdstuff54 Well-Known Member

    Messages:
    639
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Here is a list of WYSIWYG editors.

    Hope that helps.
     
    wdstuff54, May 12, 2008 IP
  4. Ludus

    Ludus Active Member

    Messages:
    105
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    95
    #4
    I think you gave me a solution :)
    I changed the tag from
    <p>
    Code (markup):
    to &lt;p&gt; and now I have alla pages validated :)
     
    Ludus, May 12, 2008 IP