Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.8k stars 875 forks source link

[QUESTION] Can script tags be executed? #1120

Closed myConsciousness closed 2 years ago

myConsciousness commented 2 years ago

Hi amazing developers!

Can this library execute script tags contained in HTML source? I have read the README and there is no mention of this, and when I tried it, it didn't seem to work.

What I would like to run is HTML that works in conjunction with the following script:

<a
  class="twitter-timeline"
  href="https://twitter.com/Twiterdev?ref_src=twsrc%5Etfw"
  >Tweets by Twiterdev</a
>
<script
  async
  src="https://platform.twitter.com/widgets.js"
  charset="utf-8"
></script>

And a souvenir:

mejiro3

myConsciousness commented 2 years ago

Hi, I could implement it with webview_flutter!

For now I'm okay with this result, but I will leave this ish open. If there is no problem, please close it :)

erickok commented 2 years ago

No, this library does not and will never execute JavaScript.

myConsciousness commented 2 years ago

Hi @erickok ,

Thanks to your answer, I'm convinced :)