How can you transform abc to a. b. c. in pure css.
Only if this is not posible how can you achieve this than in angular (typescript).
How can you transform abc to a. b. c. in pure css.
Only if this is not posible how can you achieve this than in angular (typescript).
With typescript it's easy
"abc".split('').join('. ') + "."
you can make a pipe if you need to reuse this function in several places.
With CSS, I don't know how it is possible. I'm curious to know if there is a CSS solution. I suppose no (:
If you have control over the dom:
You can place a span around each character and then use the ::after pseudo-element to add the periods after each one.
It would look something like:
span::after{
content:"."
}
Unfortunately, you can't write CSS solution to do that in functional way. You can replace that in way that @MaxiGui placed in a comment. If you want to achieve that in typescript (or javascript) you can use this code:
const txt = 'abc';
const transformedTxt = `${txt.split('').join('. ')}.`;