# \<p\> tags in text fields set to HTML?

**URL:** https://forum.kirupa.com/t/p-tags-in-text-fields-set-to-html/14958
**Category:** Uncategorized
**Created:** [March 4, 2003, 8:38pm UTC](https://forum.kirupa.com/t/p-tags-in-text-fields-set-to-html/14958 "2003-03-04T20:38:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![superG](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@superG](https://forum.kirupa.com/u/superG)
#### Post date: [March 4, 2003, 8:38pm UTC](https://forum.kirupa.com/t/p-tags-in-text-fields-set-to-html/14958/1 "2003-03-04T20:38:06Z")

</div>

We have invalid characters in text fields ie: \<p\> tags, when loading data from a local object (even though the text field is set to render as HTML) ???

Questions:

1. has anyone encountered this before?
2. know of a work around?
3. find/replace script we can run through the local object to replace the any \<p\> tags arising?

Thanks to anyone that can be of assistance

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 8:44pm UTC](https://forum.kirupa.com/t/p-tags-in-text-fields-set-to-html/14958/2 "2003-03-04T20:44:18Z")

</div>

When you load the text into the textbox be sure to both have it html enabled and set to read htmlText

myTextBox.html = true  
myTextBox.htmlText = textVar

And if the P tag doesn’t work, try two BR tags (Equivelent of a P tag and I know it works).

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 8:51pm UTC](https://forum.kirupa.com/t/p-tags-in-text-fields-set-to-html/14958/3 "2003-03-04T20:51:35Z")

</div>

Thanks for your help lostinbeta, will give that a go…
