Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8400267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:31:15+00:00 2026-06-09T21:31:15+00:00

When I copy a domain name from Google Maps and then paste it into

  • 0

When I copy a domain name from Google Maps and then paste it into a form I built, it enters it into a MySQL database with ‎ appended at the end of the domain name.

Any idea how I could strip that ‎ off of the domain name?

The relevant code is below

<div class="friend5title"><label for="url">Website:</label></div> 
    <div class="friend5field"><input name="website" type="text" id="website" maxlength="150"></div>



$website = mysql_real_escape_string($website);

mysql_query("INSERT INTO submission VALUES ('$website')");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:31:16+00:00Added an answer on June 9, 2026 at 9:31 pm

    It is a control character ( http://en.wikipedia.org/wiki/Left-to-right_mark ).

    Ignore all of my previous answer I just realized (since I wrote quickly) it isn’t in unicode it is actually in a HTML entity format so you need to strip that HTML entity out:

    preg_replace('/(&#8206;)/', '', $string);
    

    An alternative is to actually purify your string and purge it of all HTML entities since it shouldn’t really have any in it. Normally there could be special characters like &amp; but these should not exist in a URL taken from an input field I reckon.

    Here is a question about removing HTML entities with a solid answer: How to remove html special chars?

    As to why it is happening: it is possible that someone has a foreign browser which artifically makes the text in inputs go a certain way but in turn by adding this html entity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I copy and paste code from this URL for creating and reading/writing a proc
i have such code (copy paste from wiki). Its multiplication of those big numbers
I need to copy several files to remote server. for database in `mysql -Bseshow
I find this code useful and want to copy-paste it into my application which
Example: copy in one tmux pane (via vim), then switch to another pane (running
I copy-pasted from MSDN this code: using System.Security.Cryptography; byte[] buffer = enc.GetBytes(text); SHA1CryptoServiceProvider cryptoTransformSHA1
I copy search results of Google and want to stick it on Excel now.
I want to copy a selection of lines from a file to another file
Hallo, I want to copy my Active Directory Users, Groups and Group Memberships from
I'm trying to connect to an existing MySQL DB from Lightswitch RTM through a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.