Link in input text field

前端 未结 8 882
余生分开走
余生分开走 2020-12-17 21:43

HI All,

I know this is bit strange question, but please suggest.

I want to create a link on website url content in input type\"text\" field not any other htm

8条回答
  •  情话喂你
    2020-12-17 22:23

    I don't know if I get the question right. As I've understood you want to be able to type in a ...-tag into an input-field. No other tags should be allowed. You can achieve this by using PHP for example:

    
    
    
    // PHP-Code
    $link = strip_tags($_POST['link'], 'a'); // Remove all other tags than the -Tag...
    

    Is that what you mean?

提交回复
热议问题