A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: format text in the xml

  1. #1
    Senior Member
    Join Date
    May 2000
    Posts
    814

    format text in the xml

    Can i create simple bold and line breaks in my text? I.can't seem to find any good resources

    PHP Code:
    <link pgTitle="Care" pgContentImage="images/blankContent16-9.jpg"pgText="I WANT A BOLD TITLE rro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. AND A LINE BREAK HERE Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur">
    </
    link

  2. #2
    Clarance the Clear Boy
    Join Date
    Mar 2012
    Posts
    5
    I recommend CDATA for using html tags within the xml's data:
    http://www.w3schools.com/xml/xml_cdata.asp

    I also recommend that the text you want to format be contained in the xml element itself, rather than an attribute.
    http://www.w3schools.com/dtd/dtd_el_vs_attr.asp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center