Remove NBSP
Hello, I want to remove nbsp; from the browser. But it'doesnt work
This is the line
<p class="job-card__description mt-3">{{str_limit(strip_tags($job->description), 300)}}</p>
Can you help?
Are they actual or just regular spaces?
@othmannl try
preg_replace('/\s+/', '', $job->description)
@Sinnbeck It shows now all the divs and removed all spaces
HalloSporters,<div><br></div><div>Zinomfitteworden?Danbenjebijmijaanhetjuisteadres.MijnnaamisAltan,21jaaren5jaaractiefbinnendefitness.Duswiljijjedoelenbehalen?danhelpikjedaargraagbij.Meerweten?neemgerustcontactop.</div><div>06-81097956</div><div><br></div><div>Metsportievegroet, </div><div>
@othmannl show your code or check your server log? Are you editing directly on production? Normally laravel shows a debug page
@Sinnbeck I'm editing on production
<p class="job-card__description mt-3">{{str_limit(preg_replace('/\s+/', '', $job->description) , 300)}}</p>
<div class="row mt-3">
<div class="col-6">
<strong class="d-inline-block">@lang('Post'): {{diffForHumans($job->created_at)}}</strong>
</div>
@othmannl ok. Sounds like a bad idea :)
You removed the strip tags?
@othmannl seems that you just have an nbsp left
str_replace(' ', '', $job->description)
Please or to participate in this conversation.