// Check if content already contains HTML tags
// Match opening tags like <p>, <br>, <div>, etc.
if (preg_match('/<[a-z][\w-]*(?:\s[^>]*)?>/i', $string))
{
// Content has HTML, don't add <br>
return $string;
}
This looks promising in my opinion :
```
// Check if content already contains HTML tags
// Match opening tags like <p>, <br>, <div>, etc.
if (preg_match('/<[a-z][\w-]*(?:\s[^>]*)?>/i', $string))
{
// Content has HTML, don't add <br>
return $string;
}
```
<!-- github-comment-id:4229288742 -->
I don't care. I don't reject AI "by default". The useless addition of <br> exists. I think detecting HTML is a good solution. Period.
I don't care. I don't reject AI "by default". The useless addition of `<br>` exists. I think detecting HTML is a good solution. Period.
<!-- github-comment-id:4229296513 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
In regard of: https://fr.piwigo.org/forum/viewtopic.php?pid=243798#p243798
This looks promising in my opinion :
Forget, it's AI bullshit.
I don't care. I don't reject AI "by default". The useless addition of
<br>exists. I think detecting HTML is a good solution. Period.