Hi. I'm trying to develop a site using Umbraco + MVC / Razor + TailwindCSS
I've run into this weird problem where '/' is being stripped from the HTML - SOMETIMES..
After consulting other professionals on ASP.NET Forum / MVC who tested and verified that its NOT MVC stripping the chars, im lead to believe that it's Umbraco !
in TailwindCSS a classname can be: "w-1/3" (Width of one 3rd)
The output is occationally missing the '/' char , breaking the HTML / design.
is there a setting somewhere i need to set to get rid of this problem ?
like i said, it seems inconsistant .. sometimes the '/' is stripped, sometimes it is not..
note: I've also tried disabling Javascript which didn't help.
Show me some code :) I use Tailwind too, and have never had these problems. Besides, Umbraco doesn't touch your markup at all. So it must be something else.
Characters being stripped in HTML / Razor
Hi. I'm trying to develop a site using Umbraco + MVC / Razor + TailwindCSS
I've run into this weird problem where '/' is being stripped from the HTML - SOMETIMES..
After consulting other professionals on ASP.NET Forum / MVC who tested and verified that its NOT MVC stripping the chars, im lead to believe that it's Umbraco !
in TailwindCSS a classname can be: "w-1/3" (Width of one 3rd)
The output is occationally missing the '/' char , breaking the HTML / design.
is there a setting somewhere i need to set to get rid of this problem ?
like i said, it seems inconsistant .. sometimes the '/' is stripped, sometimes it is not..
note: I've also tried disabling Javascript which didn't help.
thanks !
I haven't seen this behavior before. How are your views looking?
Like normal views ? 😅
what in particular would you like to know ?
Show me some code :) I use Tailwind too, and have never had these problems. Besides, Umbraco doesn't touch your markup at all. So it must be something else.
hi ..
I've given up on finding the code that strips slashes ...
instead i extended TailwindCSS with fractions of 12 for declaring Width..
eg:
this is nicer and easier and doesn't contain invalid / bad practice chars in classnames.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.