Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104371

qwebengine page toPlainText does not give the expected result.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.2, 6.2.4
    • WebEngine
    • None

      check the attached example.

      the web html content is

      <div>
      <i>watch</i>out
      </div>
      

      when convert to plainText using QWebeningPage::toPlainText
      the result is
      watchout
      but a more humanable result should be : "watch out"

      because the text is lexically seperated by html tags i

        1. image-2022-06-16-11-41-11-633.png
          34 kB
          yifang xiao
        2. webenginepage2plaintext.zip
          8 kB
          yifang xiao
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt_webengine_team Qt WebEngine Team
            xiaoyifang yifang xiao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes