Use HTML Tags in Quest (WITHOUT PASTING IT)

I'm attempting to add the following HTML to my game:
<audio controls="controls"> <source src="https://docs.google.com/uc?export=download&id=1DQuMVLvV0cJFiWrg1sX341r3rFL0Pfkk"> </audio>
Which would =

How do I do this? I am unable to paste anything into my code without getting an error.


What kind of error?

I assume your code (inn code view) looks something like:

msg ("<audio controls=\"controls\"> <source src=\"https://docs.google.com/uc?export=download&id=1DQuMVLvV0cJFiWrg1sX341r3rFL0Pfkk\"> </audio>")

I just pasted that into a game, and it works fine; so you'd have to give us a little more information about the error.

If you're using the GUI to edit your code, make sure you have "message" selected rather than "expression" (unless of course your expression is a Quest variable that contains the HTML, or something similar). If you're using expressions, make sure you put a \ before any " in the HTML, so that Quest doesn't mistake it for the " that marks the end of the string. (if you choose "message" it will do this for you automatically, which is convenient)

If you're using the code view on the web editor, you'll have a problem because the web editor has problems saving a string that contains a < character. My fix is usually to replace the < with «, and then change it back in the GUI editor.


I get an internal error when pasting it directly into the code, but this works fine. Thanks.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums