Skip to content

Instantly share code, notes, and snippets.

@stephaneerard
Created December 26, 2010 15:12
Show Gist options
  • Select an option

  • Save stephaneerard/755467 to your computer and use it in GitHub Desktop.

Select an option

Save stephaneerard/755467 to your computer and use it in GitHub Desktop.
Returns an array with html tags
public function getHtmlTags() {
$tags = array(
'html','head','body',
'base','link','meta','object','script','style','title','basefont','isindex',
'p','h1','h2','h3','h4','h5','h6','dl','dt','dd','ol','ul','li','adress','blockquote','center','del','div','hr','ins','noscript','pre',
'a','abbr','acronym','dfn','em','strong','code','samp','kbd','var',
'b','i','big','small','strike','tt','u','font','span','br','bdo','cite','del','ins','q','sub','sup',
'applet','area','img','map','param',
'form','button','fieldset','input','label','legend','option','optgroup','select','textarea',
'table','tr','th','td','colgroup','col','caption','thead','tbody','tfoot',
'frameset','frame','iframe','noframe',
'listing','plaintext','xmp','nextid','blink','marquee','nobr','wbr','noembed',
'article','aside','audio','canvas','command','datalist','details','embed','figcaption','figure','footer','header','hgroup','keygen',
'mark','meter','nav','output','progress','rp','rt','ruby','section','source','summary','time','video','wbr'
);
return $tags;
}
@stephaneerard

Copy link
Copy Markdown
Author

Thanks to HammHetfield on #symfony-fr (irc Freenode) for this !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment