# Formatting XML Text - Need Help

**URL:** <https://forum.kirupa.com/t/formatting-xml-text-need-help/122853>\
**Category:** Uncategorized\
**Created:** [September 17, 2004, 4:23pm UTC](https://forum.kirupa.com/t/formatting-xml-text-need-help/122853 "2004-09-17T16:23:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sixfortyfive](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sixfortyfive/32/671_2.png) [@sixfortyfive](https://forum.kirupa.com/u/sixfortyfive)\
**Post date:** [September 17, 2004, 4:23pm UTC](https://forum.kirupa.com/t/formatting-xml-text-need-help/122853/1 "2004-09-17T16:23:05Z")

</div>

Is it possible to add bold or italics to parts of the text in my XML file? I have my textfield set as “htmlText”, and I’ve turned on “render text as html”. I can’t get it to work. I did find one forum posting on this here, but it uses a different setup. [Other Post](http://www.kirupaforum.com/forums/showthread.php?t=62856)

XML File:

```auto

  <gallery>
  <image type="photo" 
  main="images/01.jpg" 
  thmb="images/01_sm.jpg" 
  title="Title Text" 
  desc="Description goes here." />
  </gallery>

```

I’ve tried this, but it isn’t working.

```auto

   <gallery>
   <image type="photo" 
  main="images/01.jpg" 
  thmb="images/01_sm.jpg" 
  title="Title Text" 
  desc="Description goes [color=Red]<b>[/color]here[color=Red]<b>[/color]." />
   </gallery>

```

Using this breaks the XML. I am assuming it is because it is reading the brakets, and I’ve tried using / in front of the brakets or ‘\<b\>’ around the HTML tag.

Anyone know how to do this?
