1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #10136 resolved

In editor chars originally encoded as html entities are replaced with their real/one char values (BB-11085)

Vasyl Zuzyak
created an issue

I have file in my repo with next code

    var _entityMap = {
        "&": "&",
        "<": "&lt;",
        ">": "&gt;",
        '"': '&quot;',
        "'": '&#39;',
        "/": '&#x2F;'
    };

If I open that file in editor, code that is above turns into next

    var _entityMap = {
        "&": "&",
        "<": "<",
        ">": ">",
        '"': '"',
        "'": '&#39;',
        "/": '&#x2F;'
    };

In diff mode I get one more block of changed lines. See screen

Comments (10)

  1. Erik van Zijst staff

    I'm unable to reproduce this. Could you create a standalone repo in which we could reproduce the issue? If so, could you send us the URL to support@bitbucket.org?

  2. Joshua Friend

    If it helps, in my case the file which was affected was a php file with html, php, and javascript within it, as opposed to being just javascript. The entities that were changed to their actual values were within javascript <script> tags.

  3. Log in to comment