Giter VIP home page Giter VIP logo

Comments (5)

Drup avatar Drup commented on August 17, 2024

Ahah, I investigated the bug, so let's look at https://github.com/ocsigen/eliom/blob/master/src/client/eliom_client.ml#L1246 . Strangely, as you pointed out, it doesn't work!
@balat, @vouillon (@chambart ?) Is there a way to bypass the encoding done by eliom/js_of_ocaml, if yes, where ?
If no, how do I do it ?

from eliom.

Drup avatar Drup commented on August 17, 2024

Since you seems to be in the middle of hacking this stuff, @hhugo ? :)

from eliom.

hhugo avatar hhugo commented on August 17, 2024

I just pushed ocsigen/js_of_ocaml@18d0689
the new function Dom_html.decode_html_entities decode html entities to their corresponding chars.

let x = Js.string "&#946"
let x = Dom_html.decode_html_entities x (* x now contains β *)

from eliom.

pveber avatar pveber commented on August 17, 2024

Great, thanks!
I guess now eliom_client.ml should be fixed using the new Dom_html.decode_html_entities function?

from eliom.

Drup avatar Drup commented on August 17, 2024

@pveber I added your example in the test suite, thanks!

from eliom.

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.