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

Code blocs support (<pre> tags are wrongly being stripped) #60

Open
s0me-1 opened this issue Jun 8, 2020 · 1 comment
Open

Code blocs support (<pre> tags are wrongly being stripped) #60

s0me-1 opened this issue Jun 8, 2020 · 1 comment

Comments

@s0me-1
Copy link

s0me-1 commented Jun 8, 2020

<pre>&lt;options type="keyboard" instance="1" Product="Tastatur {6F1D2B61-D5A0-11CF-BFC7-444553540000}"/&gt;    <br>&lt;options type="joystick" instance="1" Product="X56 H.O.T.A.S. Stick {22210738-0000-0000-0000-504944564944}"&gt;     <br>     &lt;flight_move_strafe_longitudinal invert="1"/&gt;    <br>&lt;/options&gt;    <br>&lt;options type="joystick" instance="2" Product="X56 H.O.T.A.S. Throttle {A2210738-0000-0000-0000-504944564944}"&gt;</pre>

Became

<p><options type="keyboard" instance="1" Product="Tastatur {6F1D2B61-D5A0-11CF-BFC7-444553540000}"/>    </p><p><options type="joystick" instance="1" Product="X56 H.O.T.A.S. Stick {22210738-0000-0000-0000-504944564944}">     </p><p>     <flight_move_strafe_longitudinal invert="1"/>    </p><p></options>    </p><p><options type="joystick" instance="2" Product="X56 H.O.T.A.S. Throttle {A2210738-0000-0000-0000-504944564944}"></p>

on robertspaceindustries.com, those <pre></pre> are the one identifying

codeblocs like this

It's important because without those, all of the content of the codebloc is stripped if it has any HTML tag in it, but all of the content of the code block shouldnt be parsed at all and should be considered as raw text

@s0me-1 s0me-1 changed the title <pre> tags are wrongly being stripped Code blocs support (<pre> tags are wrongly being stripped) Jun 8, 2020
@kokarn
Copy link
Member

kokarn commented Jun 9, 2020

That's a nice find!

I'll have a look

Post for my own reference:
https://developertracker.com/star-citizen/?post=bxowdwwx

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

No branches or pull requests

2 participants