MDanz Posted September 2, 2009 Share Posted September 2, 2009 i've got a text area for reply... i want to click on a post and it copies that information to the text area, a quote.. also how do i allow html in my textarea for posting images? Quote Link to comment https://forums.phpfreaks.com/topic/172849-how-to-include-quotes-and-image-html-in-forum/ Share on other sites More sharing options...
mikesta707 Posted September 2, 2009 Share Posted September 2, 2009 unless you already sanitize your forum posts, HTML is already allowed. If you htmlentities the post, then you will probably have to go back through, and un-entity certain tags. you can do the "quote" system a few ways, but the most dynamic way would probably be via javascript. You could use the HTML dom to extract the words of a post, assuming the are enclosed by a div tag or something, and then take that string and put it in the textarea (perhaps wrap the string in BBC quote tags) Quote Link to comment https://forums.phpfreaks.com/topic/172849-how-to-include-quotes-and-image-html-in-forum/#findComment-910990 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.