Adding to the "Allowed HTML Tags"
Submitted by larry on Mon, 12/03/2007 - 17:11.
In my last post I really needed to have a few html <h3> tags to break things up. However, it seems that <h3> tags, as well as most other html tags, are turned off by default. So, I needed to go into the admin panel and allow a few more tags than are the default.
On the Administer » Site configuration » Input formats --> View page I had "HTML Filters", "Inline images", "Line break converter", and "URL filters" checked. I had "PHP evaluator" unchecked.
On the Administer » Site configuration » Input formats --> Configure page I had "Strip disallowed tags" checked. My "Allowed HTML tags:" list was "<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>", to which I added <h1> <h3>.
So, pretty simple just to add a tag.
On the Drupal.org forums there is a nice list of tags that appears when you go in to leave a comment, and it would be nice to have that when I'm making a blog entry. I'm not sure if that is only for forums, if it can be added to blogs somewhere in the admin panel or with a module or template change. (oh, I now see that if you click "input format" right below the edit window you do get a list of currently allowed HTML tags.)
»
- larry's blog
- Login or register to post comments
