The sanitize plugin
I had been getting great use out of the plugin "nodebb-plugin-sanitizehtml". I know its unusual for a forum, but I like to allow some html tags so I disable the default HTML sanitization. To prevent JS injections, I've used the plugin "nodebb-plugin-sanitizehtml".
However, for the past couple of months, I have not been able to open the plugin's admin screen to modify the list of tags. This may be because the plugin has not been updated in a couple of years (according to github). Is anyone else experiencing this issue? Is there a solution?
The plugin still appears to be working in the background. For example, it removes the <script> tags and <button> tags while allowing innocent tags like <h3> and allowing inline css styles. I just can't access the admin screen.
Anyone know if there is anything I can do?
Hi Baris, thanks for your quick response. No, I never get an error message. The spinning wheel just keeps going and going until the page eventually just crashes. So I don't really know what to do. I've tried different browsers. The outcome is always the same. What should I try next?
I should specify that I am not on the NodeBB server. I am on an AWS server. The platform and all other plugins are running smoothly. I am on the most recent version of Node.
Is this the plugin https://github.com/akhoury/nodebb-plugin-sanitizehtml?
Yes. That's the plugin I am struggling with.
I should also specify that I successfully reset the forum after activating the plugin. I am at a loss as to why I cant access the ACP page, even though the app is working in the background. Keeping my fingers crossed that there is a solution.
Perhaps try running
npm install --force nodebb-plugin-sanitizehtmlto force a reinstall from source and rebuild the forum (
./nodebb restartor just use rebuild and restart button in ACP). Maybe some plugin files are broken for some reason.
Sorry everyone, the force re-install did not address the issue.
Does this help diagnose the issue from anyone's perspective?
What did you do to run a rebuild?
You are right!!! As soon as our Web Dev person did a rebuild from the the command line, it all worked beautifully. It was a communication issue on our end. He thought I was doing the rebuild while I thought he was doing the rebuild.
You've all been so patient with me! Thank you so much for all the help.