On Jan 11, 2011, at 1:50 PM, Marius Dumitru Florea wrote:
On 01/10/2011 07:35 PM, Vincent Massol wrote:
Hi devs,
In lots of places we need to display the title without any markup rendering. Examples:
- breadcrumb
- activity stream
- search results
etc
This is such a common use case I'm proposing to add a new API for it in Document:
getPlainTitle()
It's a one liner that will do:
getRenderedTitle("plain/1.0")
How would this be different than getTitle()? What does the plain text
rendered actually do?
Get title returns the title as is. Imagine you have a document containing:
= hello **world** =
getDisplayTite --> hello <strong>world</strong>
getTitle --> hello **world**
getPlainTitle --> hello world
Thanks
-Vincent