embed html item

Eka_Mei

Joined: 2006-01-03
Posts: 132
Posted: Thu, 2006-03-30 02:57

How easy would it be for people to upload html, or simply copy and paste plain text onto a text area, and have it stored as an html file and display it embedded without needing to download the item first?

I'm aware that they can simply upload html file, but I might prefer to have them copy and paste to give me a chance to strip out any potientially dangerous code, at the same time displaying just like a picture inside the same window where you can see comment right underneath

Is there something that do that at the moment, any suggestion how to start if I were to try to make a module like this?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-04-02 04:07

you can use GalleryUtilities::htmlSafe to strip out dangerous tags.

 
Eka_Mei

Joined: 2006-01-03
Posts: 132
Posted: Sun, 2006-04-02 04:30

I'm aware of that, but I don't know how to have it display something embedded, and most importantly adjust the size properly instead of using the Flash file method and manually set a size to get it to work.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-04-02 15:34

not sure what you mean.. can't you just print the html? why does it need a size?

 
Eka_Mei

Joined: 2006-01-03
Posts: 132
Posted: Sun, 2006-04-02 17:25

What I meant is, I would like to have the text display directly within the gallery. So if someone submit a long story, it doesn't need to be in a separate page.