1

I have Arabic text that I want to mark it but in Arabic the letters in the word is connected to each other when I add tag to highlight letters browser break my word any one have idea what I do

An example: original word: سلام I want to highlight just second letter

original word:

    <span>سلام</span>

add tag after highlight:

    <span>س<span class='highlight'>ل</span>ام</span>

this change cause show سلام to س‌ل‌ام

shahab
  • 171
  • 2
  • 11

1 Answers1

0

Dont use span use p and span

<p>س<span class='highlight'>ل</span>ام</p>

this doesn't break your formatting...

semirturgay
  • 4,151
  • 3
  • 30
  • 50
Rodrigo Zuluaga
  • 497
  • 3
  • 11