DaveP Posted April 18, 2012 Share Posted April 18, 2012 I am using Antti's excellent Discussions Module to build some degree of forum functionality into a site and am using wysiwym.js to allow Markdown input. The problem is that between hitting <Submit> and the message being stored in the database, any actual html is being stripped out - links and anything between blocks. I know everything (quite rightly) is passed through the Sanitize function, but I would like to be able to control what is and isn't stripped out.Any suggestions? Link to comment Share on other sites More sharing options...
apeisa Posted April 18, 2012 Share Posted April 18, 2012 Dave - I did notice your pull request regarding discussions module, but I didn't have enough time then to review it. (It's been a while when I have touched the discussions code). Sorry for that. I will concentrate on this module after the summer, since I will need it on a client project. My plans was also include wysiwym.js or something like that with Discussions. So if it is my module that is sanitizing the input, then feel free to modify it. My plans with discussions is to provide nice and simple out of the box functionality, which I think means having some basic styling like what wysiwym offers. Link to comment Share on other sites More sharing options...
DaveP Posted April 18, 2012 Author Share Posted April 18, 2012 Antti, don't worry about the pull request - no hurry at all, it was only a couple of minor changes that don't really alter the functionality. I have changed the version I'm using a good lot more, and it is going to be $sanitize that is doing it, I just am not sure how to tell for sure and change whatever needs to be changed to make it work how I want. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now