How can I remove hyperlink?

How to remove hyperlink from feedback form?

  • I have a website with php and html. In the feedback form visitors are injecting hyperlink. Please inform how I resist them from injecting hyperlink in the feed back form.

  • Answer:

    Sometimes we want to remove hyperlinks with anker text, sometimes only keep anker text, how to use php to achive this? First, only remove hyperlink, and keep anker text part, the code is: $text = ‘Test paragraph.’; echo strip_tags($text); You may develop your website by using .net framework.

Madan D at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Please provide URL of Website.... Secondly: you can use javascript or JQuery in your form to prevent this....

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.