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?
Posts: 8601
you can use GalleryUtilities::htmlSafe to strip out dangerous tags.
Posts: 132
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.
Posts: 8601
not sure what you mean.. can't you just print the html? why does it need a size?
Posts: 132
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.