{"id":8361518,"date":"2016-10-27T03:44:17","date_gmt":"2016-10-27T03:44:17","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/multiple-class-names-get-mangled\/"},"modified":"2016-10-27T03:44:17","modified_gmt":"2016-10-27T03:44:17","slug":"multiple-class-names-get-mangled","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/multiple-class-names-get-mangled\/","title":{"rendered":"multiple class names get mangled&#8230;"},"content":{"rendered":"<p>Hi,<br \/>\njust wondering why the plugin uses <code>sanitize_html_class<\/code> when processing the class attribute? Many style frameworks expect multiple classes to be applied elements in order that they style correctly, ie <code>class=&quot;button button-green button-rounded&quot;<\/code>. Currently, these get munged by the stripping of spaces<\/p>\n<p>Reading <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/sanitize_html_class\">the codex<\/a>, the call is more for generating a classname from an otherwise unknown source, like a post title. <\/p>\n<p>Otherwise very happy with it!<br \/>\ncheers,<br \/>\nHugh<\/p>\n","protected":false},"template":"","class_list":["post-8361518","topic","type-topic","status-publish","hentry","topic-tag-css"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8361518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8361518\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8361518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}