Trailing slash on void elements has no effect and interact badly with unquoted attribute values

I did some changes in my code and wanted to validate the final result and got this message:

Nothing bad, but this br tags are generated by kirby. Is there a way to tell kirby to use br without the trailing slash?

In which context?

I didn’t yet uploaded the amended code, but you can check same errors from 6 to 10 here: https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.fabiosirna.com

It’s text inserted via the panel:

that it’s kirbytext:

I’m not using <br /> in the code, so my guess is that is generated by kirby.

I need more information. What type of field is that, a textarea, a writer? And how do you render it in your template?

And which Kirby version?

Sure.

Field is a text area:

        fields:
          about:
              label: Who am I
              type: textarea

I render in my template with:

  <h3>Who am I</h3>

  <?=$page->about()->kirbytext()?>

  <hr>

I’m using the latest 4.2.0 that I’m currently running locally. The one in prod is 4.1.2.

Ok, yes, only visible when you view source. I think it doesn’t really matter and I personally couldn’t care less. It’s what the markdown parser we use (Parsedown) generates. You could try other markdown parsers if you think it’s important. This validator reports all sorts of stuff…

Sure, is not an issue at all!
I was just wondering if it was easy to fix.

But, I can live with it :slight_smile: