php function to perform operation on all occurrences of a substing in a string

I want a php function to identify every sub-string in a string between 2 tags, then apply a process such as htmlentities() to the substring and then replace each substring with the new one. Needs to be commented so I can add other php operations to the substring such as htmlspecialchars() for example:-

hello, how are you to make things bold you do this <code><b>this is bold</b></code> and this is in <code><i>italics</i></code> would become:-

hello, how are you to make things bold you do this <code>&lt;b&gt;this is bold&lt;/b&gt; and this is in <code>&lt;i&gt;italics&lt;/i&gt;</code>

The tags must be passed as parameters - example <code> and </code> because I may use others or even text - eg: **start** and **finish**

I expect part of the function to look like:-

$substr = htmlspecialchars($substr)

$substr = htmlentities($substr)

so i can easily add in more instructions. The strings being processed may be very long, up to 1mb or more. The strings may contain also ' and ""

This is a very quick simple project so I will be looking at the bidder, it really is a few minutes work!

Skills: HTML, MySQL, PHP

See more: php replace string in file, replace all occurrences of a substring in a string php, php check string occurrence, php string replace, php strpos, php substring, php replace tokens in string, find all occurrences of a substring in a string php, php function location, php function convert http links, php function validate post, web server php function, php function keywords extract, php function number format bilion milion, active directory php function, php function convert url html link, php function convert links href, php function compare, time timezone php function, php function generating map state

About the Employer:
( 19 reviews ) koh rong, Cambodia

Project ID: #19243958

16 freelancers are bidding on average $27 for this job


Hello there, I am interested and ready to start, lets discuss with details. To gain some confidence, here are some of our previously completed projects:- [login to view URL] [login to view URL] More

$30 USD in 0 days
(262 Reviews)

yes sure I can help you now I have no timing issue I'm Individual freelancer with great experience thanks.

$30 USD in 0 days
(184 Reviews)

Hi there, Greetings from TechPlus! I've reviewed requirements & ready to write php function to identify every sub-string in a string between 2 tags. 5+ Years Expertise in : CMS (Wordpress, Magento, Shopify, O More

$25 USD in 1 day
(91 Reviews)

Hello there! how are you doing? Can you please provide more details about the project? if the project is fairly paid I can build you a small part of it as form of a demo, afterwards you'll decide if you should hire me More

$30 USD in 1 day
(56 Reviews)

Hi I am software engineer and full stack PHP developer your project is looking very interesting and I am looking forward to your message

$30 USD in 1 day
(76 Reviews)

Hi. It is really couple (20-40 minutes) of work with proper tests and communication. I will write a function that will accept array and change your string accordingly. Please provide example for me and you will r More

$24 USD in 0 days
(30 Reviews)

Hello As I can see from job posting, you are in need of a Php expert who can help you with your Php developer project. Well, I am highly interested in applying for this. I have been working on Php projects for 4 ye More

$30 USD in 1 day
(84 Reviews)

Hey, employer. I already have read your description carefully. I have 5+ years enough experience in website development. My major skill are HTML5, CSS3, JavaScript, JQuery, Bootstrap, MySQL etc. I am reliable fr More

$25 USD in 1 day
(28 Reviews)

Hi, Your requirements are fully clear to me and I am applying only because I meet all the requirements that you are looking for. I have been working as a wordpress developer and designer for more than 6 years and I More

$25 USD in 1 day
(29 Reviews)

Hello Employer, kindly reachout to me. I can help you work on the code snippet for you substring operations. Looking forward to reading from you

$30 USD in 1 day
(7 Reviews)

Hi, I can decide rates from your side (price can be negotiated) I understand your requirement I have knowledge in this filed 5+ yr. kindly let me know in brief what kind of requirement do you have lets can show you my More

$26 USD in 1 day
(7 Reviews)

Hello. sir I have just checked your description in detail. I have rich experience for your task. I want you to review my profile. I can finish your assignments with high quality on time & on budget. I will be fait More

$30 USD in 1 day
(9 Reviews)

Dear Client, I've read your project carefully and very interested; I am certified professional in key area and it's super easy project for me. I can start right away as i always beat deadlines you can check my re More

$28 USD in 1 day
(9 Reviews)

Doesn't matter how long your string is, I will write function to parse text between <code></code> tags and replace it with htmlspecialchars, htmlentities() takes too much memory, I will write way more simple and fast c More

$25 USD in 1 day
(0 Reviews)

Hey Sir! I am new in freelance but I have relevant experience have done project in php Give me a chance please.

$10 USD in 1 day
(0 Reviews)

Greetings! If you are looking at my reviews, you would not find them here as I just joined. However, if you would like to see my work, get in touch with me and I will show you hundreds and hundreds of projects that I More

$29 USD in 7 days
(0 Reviews)