Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

🚀 25% OFF All Practice Exams, Video Courses, & eBooks – Cyber Week Blowout Deals!

Find answers, ask questions, and connect with our
community around the world.

Home Forums General Discussions Portal Issues and Improvements Formatted text being converted to html entities

  • Formatted text being converted to html entities

  • Privat33r

    Member
    August 13, 2024 at 5:44 pm

    If some text is being pasted from other place, it’s being formatted in the editor.

    However, later the HTML is being converted to entities (likely to prevent XSS).

    I could reproduce the issue below:

    When I copied a text from my e-mail during previous edit, once pasted, it appears fine. But once posted, it looks like that:

    <font face=”Arial, sans-serif”>Issue: the diagram and explanation are slightly lacking depth and accuracy. If the instance is launched from the launch config, it has a </font>

    That’s also what happened in my earlier post: https://portal.tutorialsdojo.com/forums/discussion/some-inaccuracies-in-test-explanations/ .

    • This discussion was modified 3 months, 3 weeks ago by  Privat33r.
    • This discussion was modified 3 months, 3 weeks ago by  Privat33r.
    • This discussion was modified 3 months, 3 weeks ago by  Privat33r.

    Some inaccuracies in test explanations

  • Irene-TutorialsDojo

    Administrator
    August 14, 2024 at 2:37 pm

    Hi Learn3r.31337

    Thank you for posting. It seems that the issue you’re facing is related to how the editor processes HTML content, especially when pasting text that includes formatting from other sources like emails.

    When you paste content into the editor, it initially appears correctly due to HTML support. However, during posting or saving, HTML tags are converted into entities (e.g., <font> becomes &lt;font&gt;) to prevent XSS attacks. This conversion can cause HTML tags to display as plain text, which disrupts the intended formatting.

    To avoid issues with HTML tags displaying as plain text when pasting content:

    1. Paste as Plain Text: Use Ctrl + Shift + V (or Cmd + Shift + V on Mac) to paste without formatting.

    2. Clean Up HTML Manually: Switch to the HTML/source code view and remove unnecessary tags.

    If you encounter any other issues or need further assistance, please feel free to reach out

    Cheers,

    Irene @ Tutorials Dojo

    • Privat33r

      Member
      August 14, 2024 at 4:07 pm

      Hi, @irenedbonso

      To be fair, I would consider it a bug and I would suggest to at least make a low-priority internal ticket to address it. That’s why I made this topic in the first place: to indicate the issue.

      As an another glaring issue, some of the requests to the admin-ajax.php take unacceptably long times (5000-8000ms), causing visible UI lag. I have relatively fast and stable internet connection and the issue is in particular with the action: members_filter (when I try to see my notifications) and with action: bp_get_suggestions (when I try to address someone on forum, so I write @ and then someone’s nickname). I guess that issue might be in poorly optimized SQL queries to the DB. Maybe it doesn’t use LIMIT or filtering is happening on the server side. It might be poorly executed JOIN (e.g. without indexing) or other thing. It’s hard to judge with black box knowledge, but feel free to contact me if you need help with optimization.

      • This reply was modified 3 months, 2 weeks ago by  Privat33r. Reason: same issue as indicated in the topic: html entities
      • Irene-TutorialsDojo

        Administrator
        August 15, 2024 at 8:47 am

        Hi Learn3r.31337,

        Thank you for taking the time to share your technical investigation with us. We’ve reviewed the issue you reported about formatted text being converted to HTML entities, and this bug will be worked on in our succeeding work sprints.

        We appreciate your feedback and your contribution to improving our platform.

        Cheers,

        Irene @ Tutorials Dojo

Viewing 1 - 2 of 2 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
Skip to content