[wp-trac] [WordPress Trac] #41827: add sanitize_html_class in whole class while there is no spacing.

WordPress Trac noreply at wordpress.org
Thu Sep 7 13:00:09 UTC 2017


#41827: add sanitize_html_class in whole class while there is no spacing.
-----------------------------+------------------------------
 Reporter:  umangvaghela123  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  administration
-----------------------------+------------------------------

Comment (by umangvaghela123):

 Hi @SergeyBiryukov

 Thank you for Quick response.When We use the sanitize_html_class()
 function in HTML that time it is good for us to use sanitize whole class
 but it is required to check class that has no space.We add the like
 'plugin-card-' that time our CSS is not working, but CSS is working when
 we apply "plugin-card-1" or "2" something in class.It is fine If we use
 this one.

 One advantage: Reduce to chance to the conflict in CSS between class.

 Thanks,

 Umang Vaghela

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41827#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list