Forums | Mahara Community
ID are missing from VIEWs
27 June 2010, 8:22 PM
I am facing a problem that "id" property is missing when a view is displayed. What I was trying to do is to add internal link within a view. I added a blank "a" link like <a id="act1"></a> in the place where user should be direct to. However, when I was viewing the page, the "a" tag becomes <a></a>. Can anyone tell me how to fix this problem? Thanks in advance!
27 June 2010, 10:12 PM
This is probably being filtered out by HTML Purifier. Have you tried using <a name="act1"> instead?
29 June 2010, 12:59 AM
The "name" attribute is not allowed as well by default. We figured out that we can simply add $config->set('HTML.EnableAttrID',1); to clean_html() function under lib/web.php to allow "id" attribute to be used.
Thank you Francois!