Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML renderer supports HTML entities while other renderers don't #1985

Closed
andrewleader opened this issue Oct 1, 2018 · 1 comment
Closed

Comments

@andrewleader
Copy link
Contributor

We have a consistency issue in regards to the handling of HTML entities ( , <, >, etc).

Repro payload

{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "TextBlock",
            "text": "< &lt;"
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.0"
}

HTML renderer

In the HTML JavaScript renderer, as seen from the Visualizer, these are understood and displayed.

image

Other renderers

In the UWP (and I assume other) renderers, these are NOT understood and displayed as raw text.

image

We should have consistent behavior here. Looking at CommonMark's specification of Markdown, HTML entities should be understood and processed by Markdown. Considering we are supporting markdown in our text blocks, we should be doing this?

@andrewleader
Copy link
Contributor Author

Duping to #1984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant