Answer the question
In order to leave comments, you need to log in
How to set yandex map api iconCaption inside with html tags?
Hello everyone , how to set the text nested in html tags inside iconCaption in Placemark ?
Right now I'm creating a Placemark like this:
<Placemark
geometry={coordinate}
properties={{
iconContent: "Название кофейни",
balloonContent: "цвет <strong>голубой</strong>",
iconCaption:`Назнавие<strong>${cofeePlaces[i]?.name}<br>Text</strong>`, // тут я хочу сделать html теги .
}}
options={{
preset: "islands#blueFoodCircleIcon",
iconCaptionMaxWidth: "250",
}}
/>
`Название <Какого нибудь html тега>
${text}
<br>Text
<Закрытие тега>`
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question