Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to include Harlowe variable in html

Hi All!

I'm trying to use a variable($val) inside html on a passage.
(set: $val to 10)
<progress value= $val max="100">70 %</progress>

But the value is not understood by HTML. What should be the proper syntax?

Comments

  • Try something like the following:
    (print: '<progress value="' + (text: $val) + '" max="100">70%</progress>')
    
Sign In or Register to comment.