id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 34105 kses strips tags with hyphens in the name batmoo jorbin "The W3C Custom Elements spec (http://www.w3.org/TR/custom-elements/#concepts) allows you to use your own custom DOM elements/tags. One of the main requirements is that the tag name ""must contain a U+002D HYPHEN-MINUS character"". However, kses does not currently factor in the hyphen and strips out tags, even if they're set to be explicitly allowed: {{{ $string = 'Hello'; wp_kses( $string, array( 'hyphenated-tag' => array() ) ); // returns 'Hello' but should be 'Hello' }}} This is because the regex for parsing the element name within kses only allow alphanumerics. It would be nice if this was loosened to allow hyphens in the tag name." defect (bug) closed normal 4.7 Formatting normal fixed has-patch