Skip to content

Excesive html escaping for button text #31

@karliss

Description

@karliss

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions