Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
Tags showing when i use TinyMCE to post new Paragraph

i'm using TinyMCE to post new Paragraph to the website

and after posting its showing the Paragraph like this:

<p>Some text</p>

so its posting the tags as well

how to solve this problem?

-This is how i'm printing the paragraph:

<p> {{$data->subtitle}} </p>
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Based on your code you are not just using regular old PHP, but rather something like a Larvel Blade template.

Often templating systems don't allow you to output HTML like that directly due to security reasons (they are trying to prevent injection attacks, you should be aware of them!!).

If it is indeed Blade, try doing

{!! $data->subtitle !!}
  • Reference: https://laravel.com/docs/8.x/blade#displaying-unescaped-data
  • Also read: https://laravel.com/docs/8.x/blade#displaying-data
about 4 years ago · Juan Pablo Isaza Report

0

I was able to solve this problem by decode the string:

<?php
  $str = $data->subtitle;
  echo html_entity_decode($str);
?>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!