I installed and activated the plugin-sanitizehtml , restarted NodeBB as instructed, saved the default plug-in settings from ACP.
But, now all my HTML tags have been stripped off (I can tell by looking at the source)
What am I missing ?
BTW, I uninstalled the Markdown-plugIn before installing the sanitizehtml plugIn.
How load a tpl file in a component html (div)
-
I need to load a tpl file in a <div> in a page. My purpose is loaded an tpl file in a component and I need to pass parameter in this tpl file. I think that "Load()" function from jquery can be usefull but I'm not sure.
if (data.tpl === "account/favourites") { console.log("MIAOOO"); // Add your jQuery here. var gancio = $('ul[component="posts"]').empty(); //var gancio = $('#content'); var uid = app.user.uid; gancio.load("connect-aggiungi-bookmarked.tpl", function() { });
Anyone can suggest me how I can do this ? Or something like ajaxify.loadTemplate?