[wp-trac] [WordPress Trac] #27827: Markup: Title with markup shows html markup when page attributes -> parent pages is being selected

WordPress Trac noreply at wordpress.org
Thu May 1 16:12:42 UTC 2014


#27827: Markup: Title with markup shows html markup when page attributes -> parent
pages is being selected
--------------------------+------------------------------
 Reporter:  manojhl123    |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.8.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by manojhl123):

 Replying to [comment:12 5um17]:
 > Replying to [comment:11 manojhl123]:
 > > Replying to [comment:10 5um17]:
 > > > Title mean to be have plain text. If someone uses it as textarea to
 display HTML then there is no difference between title field and content
 editor.
 > >
 > > To provide semantic meaning for post_title we need HTML tags so, post
 title needs HTML tags but not in all cases.
 > To provide semantic meaning to post title you must modify template file
 where it is being render instead of saving your time and modifying core.
 You can also use a metabox to display this code snippet on frontend and
 leaving title readable in dashboard.

 Using HTML tags (not all) in post title is provided form core itself, if
 you ever tested your theme with theme-unit-test data, a post is their with
 <strong> and <em> tags in post title. The reason for using this to provide
 semantic meaning in post titles too and helps a bit in SEO(little much,
 using semantics helps a lot in SEO)..

 Inside admin panel you don't need to provide the semantic meaning for
 anything because it will not be exposed to world. so what I am asking is
 strip these HTML tags inside Admin panel and allow these tags in front-
 end....

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


More information about the wp-trac mailing list