Find Jobs
Hire Freelancers

PHP function to filter between two tags

$30-100 USD

Completed
Posted over 13 years ago

$30-100 USD

Paid on delivery
We are working on a PHP-driven web site that will automatically censor and remove information for users that are not logged in.? We need a reliable function to filter text and remove parts between and tags and return the result. ## Deliverables Here is a detailed view of what we need.... #### Begin pseudo-cdoe function censor_html($input){ // You create this part return $something; } $sample='This information is not a secret. **The secret phone number is (123) 555-1234. _Do not give it out_**? The mail phone number is (123) 555-1000.'; echo censor_html($sample); /* Returns only: This information is not a secret.? The mail phone number is (123) 555-1000. */ #### End Everything between and is removed from the string. - Note that other HTML tags my be between and . - and may appear on different lines - and will appear in lines with non-private text. - We are responsible to calling the function when appropriate.? You are not required to integrate with our system... only create a fast, efficient function to accomplish this goal. - Function cannot be klunky.? Should execute in 30 milliseconds or less from the command line interface (excluding time for the HTTP daemon) for a 10k byte input on an idle 2.8GHZ Linux core.? ## Platform PHP (LAMP Stack)
Project ID: 3880689

About the project

6 proposals
Remote project
Active 13 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$9 USD in 14 days
5.0 (4 reviews)
1.5
1.5
6 freelancers are bidding on average $60 USD for this job
User Avatar
See private message.
$58.65 USD in 14 days
5.0 (161 reviews)
6.4
6.4
User Avatar
See private message.
$42.50 USD in 14 days
5.0 (30 reviews)
4.3
4.3
User Avatar
See private message.
$38.25 USD in 14 days
4.6 (23 reviews)
4.1
4.1
User Avatar
See private message.
$85 USD in 14 days
5.0 (9 reviews)
3.3
3.3
User Avatar
See private message.
$127.50 USD in 14 days
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
Alpharetta, United States
5.0
13
Payment method verified
Member since Oct 27, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.