I can't use javascript in Text Box


#1

Redash 1.0.1+b2833

I can’t use javascript in Text Box.

Here is the javascript code.

<script>
function hoge() {
alert("abc");
}
</script>

<button onclick="hoge();">xxx</button>

I got error (Uncaught ReferenceError: hoge is not defined) when push this [XXX]button.

Is my Text Box written code wrong?


Widget js HELP ME
#2
<p ng-bind-html="$ctrl.widget.text | markdown" class="p-5"></p>

Because of “markdown” filter javascript does not work.
I remove “makrdown” where I got javascript worked.