Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6768795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:06:59+00:00 2026-05-26T15:06:59+00:00

The purpose of the <bdi> tag in HTML5 is to isolate bidirectional text from

  • 0

The purpose of the <bdi> tag in HTML5 is to isolate bidirectional text from it’s context. And that’s precisely what I’m looking for.

A left-to-right username displays like this:

Welcome, Generic User. [Logout]

With a right-to-left username it would turn into this awful thing:

Welcome, [tougoL] .resU cireneG

or even worse depending on the context, displaying everything around (not just the users’ name) in backwards.

The problem is that no browsers support the <bdi> tag yet, so I was wandering, is there a way to simulate it? What HTML tags could isolate it aswell? I know <span> and <div> do not.

I wouldn’t like to remove all BIDI characters, but the way I see it, the importance of my site to display properly > the right for bidirectional-language users to participate.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:07:00+00:00Added an answer on May 26, 2026 at 3:07 pm

    With a right-to-left username it would turn into this awful thing

    It shouldn’t. The text in an (eg) Arabic username would be rendered right-to-left but it wouldn’t affect the flow of Latin text around it.

    The problem you may be thinking of is when a username includes a Unicode BDO (bi-directional override) control character. This affects all inline text following it, which is often a Bad Thing for web sites templating text into HTML.

    Probably the simplest solution to this problem is input filtering to remove control characters, both the normal ASCII ones (0x00–0x1F) and the Unicode ones. There is a group of characters designated by Unicode and W3 as unsuitable for use in markup in this Note which web applications will generally want to remove from data. It includes the BDO characters and several others that can cause odd effects to leak outside of their own stretch of text.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The purpose I aming for is, that 2 seconds after my activity was started
The purpose of this code is to pull upgrade.zip from a central server, extract
The purpose of my application is to pick some localized strings from an assembly.
purpose:i want to limit the times that a task can make syscall. so,i add
Purpose: JComboBox to list down ages that a user can select I realize that
Purpose: Obtain the public method signature(return value,parameter,method name) from java bytecode files. I am
Purpose: To convert the following code from Selenium IDE to RC in C#. <tr>
Purpose: Create a program that takes two separate files, opens and reads them, assigns
Purpose of the app: A simple app that draws a circle for every touch
Purpose : Every half-hour I query database to find a post that havn't published

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.