Code Monkey home page Code Monkey logo

Comments (8)

carlosperate avatar carlosperate commented on June 6, 2024

I assume you mean > and <, yes the conversion between plain text code and HTML is definitely messing with those symbols, I'll have a look.

(Btw, you can see that the build.py has been updated :)

from ardublockly.

RubensQRZ avatar RubensQRZ commented on June 6, 2024

Thank you so much, Carlos.

I have not seen the build.py.

I will check

Best Regards

Rubens.

from ardublockly.

carlosperate avatar carlosperate commented on June 6, 2024

Sorry it took so long to finally look into this. Should be good to go now :)

from ardublockly.

RubensQRZ avatar RubensQRZ commented on June 6, 2024

Thank you so much, Carlos

Best regards

Rubens

from ardublockly.

RubensQRZ avatar RubensQRZ commented on June 6, 2024

Dear, Carlos.

With the soluction to this problem, another problem arised.

We can not use the symbols "<" and ">" in the string arguments of addinclude function. To workaround, i'm now using the html entities in the second argument of this function.

Best regards.

Rubens.

from ardublockly.

carlosperate avatar carlosperate commented on June 6, 2024

I see, so that's why the original HTML sanitation was made! I remembered there was a reason, but couldn't find incorrect code generated in my tests for this fix (I should have been looking for missing code, not just scape characters!).

Please keep in mind that the Arduino code generated and loaded into the IDE (for opening the code, verifying or uploading) bypasses all of this, and therefore should be correct. So if you add the HTML scape characters to the javascript generator function to include them in the C code, then it will be displayed correctly on the application, but shouldn't work on the Arduino IDE (unless you are copying and pasting).

from ardublockly.

RubensQRZ avatar RubensQRZ commented on June 6, 2024

Thank you for de warning, Carlos, I had not yet tried to send the code to the IDE.

Best regards

from ardublockly.

carlosperate avatar carlosperate commented on June 6, 2024

The last issue you mention here has been fixed in 0b4e3e4.

from ardublockly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.