Assigning string that contains < or other html special symbols as button text results in < 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
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
Assigning string that contains
<
or other html special symbols as button text results in<
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
Test app / minimal test case
Context
Your Environment