# Problem update

**URL:** <https://www.ruby-forum.com/t/problem-update/189246>\
**Category:** Ruby\
**Created:** [May 27, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/problem-update/189246 "2010-05-27T13:16:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viglesiasgutierrez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/d9b06d/32.png) [@viglesiasgutierrez](https://www.ruby-forum.com/u/viglesiasgutierrez)\
**Post date:** [May 27, 2010, 1:16pm UTC](https://www.ruby-forum.com/t/problem-update/189246/1 "2010-05-27T13:16:01Z")

</div>

Can anyone tellme why when i update or save html code in my database  
ruby clean all html tags.

Tanks

---

<div class="post-metadata">

**Author:** ![viglesiasgutierrez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/d9b06d/32.png) [@viglesiasgutierrez](https://www.ruby-forum.com/u/viglesiasgutierrez)\
**Post date:** [June 1, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/problem-update/189246/2 "2010-06-01T14:55:45Z")

</div>

- Victorio I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Can anyone tellme why when i update or save html code in my database  
> ruby clean all html tags.

Not as long as you’re not giving us any information at all about how  
you are storing data to your database.

---

<div class="post-metadata">

**Author:** ![viglesiasgutierrez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/d9b06d/32.png) [@viglesiasgutierrez](https://www.ruby-forum.com/u/viglesiasgutierrez)\
**Post date:** [June 1, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/problem-update/189246/3 "2010-06-01T16:00:45Z")

</div>

2010/6/1 Lars H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> - Victorio I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Can anyone tellme why when i update or save html code in my database  
> > ruby clean all html tags.
> 
> Not as long as you’re not giving us any information at all about how  
> you are storing data to your database.

Also I’d be curios what “clean all HTML tags” actually is supposed to  
mean. I can think of various things not all of which do actually make  
sense.

Cheers

robert
