Search code examples
flutterdartcharflutter-text

flutter display text with special characters


How can I render text with the special chars like ' in flutter

I have tried using Runnes and Ut8 but not getting the rquired result


Solution

  • you want to render this ' to this ' !

    use html_unscape package.

    import 'package:html_unescape/html_unescape.dart';
    
    main() {
      var unescape = HtmlUnescape();
      var text = unescape.convert("'");
      print(text); // '
    }