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

innerText and not innerHTML ? #333

Open
joseph-vidal-rosset opened this issue Sep 1, 2022 · 0 comments
Open

innerText and not innerHTML ? #333

joseph-vidal-rosset opened this issue Sep 1, 2022 · 0 comments

Comments

@joseph-vidal-rosset
Copy link

It, depends how you send the output to the HTML page. There are two options basically:

* **Option 1:**
  element.innerText += output

* **Option 2:**
  element.innerHTML += output

If Tau Prolog uses Option 1 or your code uses Option 1, you don't need to do anything, then output can for example be "... a => b ...", the ">" gets

not interpreted.

I replaced everywhere in tau-prolog.js as in my html page innerHTML by innerText and the problem is completely solved ! Many thanks !

Is this a good solution for all Tau Prolog programs? This question is for the developers.

Originally posted by @joseph-vidal-rosset in #326 (comment)

@joseph-vidal-rosset joseph-vidal-rosset changed the title > It, depends how you send the output to the HTML page. There are two options basically: innerText and not innerHTML ? Sep 1, 2022
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

1 participant