Re: [xwiki-users] Disabling javascript in HTML macro

2016-04-19 Thread Vincent Massol
Hi Andrew, > On 18 Apr 2016, at 19:32, Andrew Kuang wrote: > > Thank you for the responses, Vincent and Marius. > > After playing around with the HTML macro, I came across a potential > solution. It appears that all the XWiki-created pages reside within certain > spaces

Re: [xwiki-users] Disabling javascript in HTML macro

2016-04-18 Thread Andrew Kuang
Thank you for the responses, Vincent and Marius. After playing around with the HTML macro, I came across a potential solution. It appears that all the XWiki-created pages reside within certain spaces (xwiki:Wiki, xwiki:WikiManager, etc). With that in mind, I was able to prototype an override for

Re: [xwiki-users] Disabling javascript in HTML macro

2016-04-18 Thread Vincent Massol
Hi Andrew, > On 15 Apr 2016, at 22:56, Andrew Kuang wrote: > > Hi, > > I wanted to assess how difficult it might be to disable all javascript > execution in HTML macros on XWiki. My main concern would be to avoid > breaking any important XWiki pages that utilize javascript

Re: [xwiki-users] Disabling javascript in HTML macro

2016-04-18 Thread Marius Dumitru Florea
The HTML macro doesn't execute JavaScript code. It outputs HTML code that ends up being interpreted by the browser. So in order to prevent the execution of the JavaScript code that might be embedded in the HTML code generated by the HTML macro, the options are: (1) prevent the usage of the HTML

[xwiki-users] Disabling javascript in HTML macro

2016-04-15 Thread Andrew Kuang
Hi, I wanted to assess how difficult it might be to disable all javascript execution in HTML macros on XWiki. My main concern would be to avoid breaking any important XWiki pages that utilize javascript within the HTML macro (as referenced here: