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

Excesive html escaping for button text #31

Open
karliss opened this issue Nov 10, 2019 · 0 comments
Open

Excesive html escaping for button text #31

karliss opened this issue Nov 10, 2019 · 0 comments
Labels

Comments

@karliss
Copy link

karliss commented Nov 10, 2019

Assigning string that contains < or other html special symbols as button text results in &lt; being displayed.

Expected Behavior

Any string can be assigned as button label.

Current Behavior

Label string gets excessively escaped resulting in escape sequence being displayed as label instead of intended text.

Possible Solution

Steps to Reproduce (for bugs)

Run test app described bellow.

Media

button

Test app / minimal test case

package ;

import haxe.ui.HaxeUIApp;
import haxe.ui.core.Component;
import haxe.ui.components.Button;
import haxe.ui.containers.VBox;
import haxe.ui.macros.ComponentMacros;

class Main {
    public static function main() {
        var app = new HaxeUIApp();
        app.ready(function() {
                var main:Component = new VBox();
                app.addComponent(main);
                var button = new Button();
                button.text = "<";
                main.addComponent(button);

                app.start();
        });
    }
}

Context

Your Environment

  • Version used:
haxeui-core: [1.0.5]
haxeui-html5: [1.0.1]
  • Environment name and version : Mozilla Firefox 70.0.1, Chromium 78.0.3904.97
  • Operating System and version (desktop or mobile): Arch Linux
  • Link to your project:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants