flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35174) HTML text tags are keep
Date Mon, 14 Nov 2016 17:34:58 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15664485#comment-15664485
] 

Alex Harui commented on FLEX-35174:
-----------------------------------

FlexJS components that can display HTML should already have both a "text" and "html" property.
While we could be "smart" about it, being smart costs cycles.  At runtime, the code has to
scan the string for tags.  By having a "text" and "html" property we avoid that overhead,
plus you then don't have to invent an escape clause for when you really do want to display
a tag in plain text.

> HTML text tags are keep
> -----------------------
>
>                 Key: FLEX-35174
>                 URL: https://issues.apache.org/jira/browse/FLEX-35174
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.8.0
>         Environment: macOs Sierra
>            Reporter: Carlos
>
> This code compiles and works but tags inside the text "<br>" are maintained, ergo
we get a "<br>" instead a line break.
> <js:H4>
>       <js:text><![CDATA[Featured event:<br>May 24, 2016<br>7-11pm]]></js:text>
> </js:H4>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message