Skip to content

export should automatic convert special chars #14

Open
@AlmogBaku

Description

@AlmogBaku

rubenv/angular-gettext#23

In continue to this issue- I think the exporter should automatic convert special chars that the javascript-engine convert..

var p=document.createElement("p");
p.innerHTML='privacy policy & terms of use.';
console.log(p.innerHTML);
// Result: "privacy policy & terms of use."

Possible solutions:

  1. creating a fake dom - maybe it will create better results (https://github.com/andreasgal/dom.js/)
  2. create converter which just replace the problematic characters
    1. I tried to figure out which characters the javascript converting and it seems like it only convert the next chars: & <>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions