I need a simple PHP function to change all nested list elements within a text string into one list. There may be multiple lists in the same string, each with several levels. I expect preg_replace() or something similar to be used.
For example, all items in this list should be reduced to only one level:
<ul>
<li><strong>Level one</strong>
<ul>
<li class="large">Level two</li>
<li>Level two
<ul>
<li>Level three</li>
</ul>
</li>
</ul>
</li>
<li>Level one</li>
</ul>
Desired output:
<ul>
<li><strong>Level one</strong></li>
<li class="large">Level two</li>
<li>Level two</li>
<li>Level three</li>
<li>Level one</li>
</ul>
I would like this done within a couple of hours. Please confirm in your bid. Thank you.
Hello.
I have good skills in PHP, Regular Expressions.
I have checked your project description carefully and i can do it perfectly.
Contact me please.
Thanks.
$10 USD en 1 día
4,9 (136 comentarios)
6,3
6,3
11 freelancers están ofertando un promedio de $25 USD por este trabajo
Hi,
I've read carefully of your job description about "Use PHP to removed nested HTML list elements".I am a professional "Full Stack Web Developer".I have more than five years experience in Web Development.
Your satisfaction with the project is my top priority! If you give me a chance to work with you then I will try my best level for your project to run successfully.
Waiting for your kind response.
Best Regards
Tridip Sarkar
Dear sir,
I am ready to start now.
I am working with PHP, Codeigniter, Laravel framework, Slim framework, wordpress, mysql, AJAX, JSON, javascript, jQuery, bootstrap, css3 and html5.
thanks
taiabur rahman
hello there, my name is Ali Ridha.
i'm an expert WEB Designer & Developer with over +4 years of experience with PHP/Mysql/javascript/HTML5/CSS3/Jquery/BootStrap/WordPress.
I'm sure I can provide you with what you want in no time :).
you can see my portfolio for previous projects.
please, send me message to discuss further details.