Needs a way to use HTML in widget/hint

Bug #72730 reported by Francis J. Lacoste
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Unassigned

Bug Description

It is not possible to use HTML in widget/hint because the hint is HTML escaped by default.
Using 'structure' to prevent this escaping is not necessarily a good idea because it would assume
that all schema descriptions are valid HTML string which is too broad an assumption to make.

We either need to mark schema's description containing a valid HTML using a marker interface or
adds a special field to widget that would contain HTML to inject in the template.

Changed in launchpad:
status: Unconfirmed → Confirmed
Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 72730] Needs a way to use HTML in widget/hint

Francis J. Lacoste wrote:
> Public bug reported:
>
> It is not possible to use HTML in widget/hint because the hint is HTML escaped by default.
> Using 'structure' to prevent this escaping is not necessarily a good idea because it would assume
> that all schema descriptions are valid HTML string which is too broad an assumption to make.
>
> We either need to mark schema's description containing a valid HTML using a marker interface or
> adds a special field to widget that would contain HTML to inject in the template.

I think the outcome of previous discussions was to standardize on a subset
of Wiki markup and enable its use for selected fields such as descriptions.

--
Stuart Bishop <email address hidden> http://www.canonical.com/
Canonical Ltd. http://www.ubuntu.com/

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

That was for user input (product descriptions etc). I think Francis is talking about help for form fields.

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Indeed that's what I'm talking about. But I don't see why we couldn't apply that markup to docstring/schema title and description also.

Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
Curtis Hovey (sinzui) wrote :

Tim implemented this.

Changed in launchpad:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.