Skip to content

[Github Mobile]: A PR comment containing specific a HTML element (e.g., <button>, <script>) will not show text after HTML element #41555

Answered by airtower-luna
meck93 asked this question in Mobile
Discussion options

You must be logged in to vote

If you escape the < it will show as text, and then the rest too because it isn't an HTML element any more. You can simply add a backslash in front of it, or wrap the whole element in backticks to put it into a code section (this is what I'd prefer).

Example:

\<button>
`<button>`

Renders as:

<button>
<button>

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@meck93
Comment options

@metecanpolat1

This comment was marked as spam.

Answer selected by meck93

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@metecanpolat1

This comment was marked as spam.

@BagasAnjasmara

This comment was marked as disruptive content.

This comment was marked as disruptive content.

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Mobile
Labels
None yet
5 participants