On the front-end page, I get a textarea tag to submit the content. Users can enter any content here. However, I want to perform special processing on the following three methods. what should I do? video: you can insert Youku's video code and read it from the database to display the video on the front-end. Image: enter an image...
textarea
Tag to submit the content. you can enter any content here, but I want to perform special processing on the following three methods. what should I do?
Video: you can insert Youku's video code and read it from the database to display the video on the front-end.
Image: after entering the image address, the image can be displayed.
Link: enter an address to display the link
Escape other symbols and codes. For example《script》alert('hello')《script》
,
hello world
And so on.
When you re-edit the content, it displays the previously entered content, rather than the converted content.
The backend language is php. how can I write php? thank you!
Reply content:
I got one on the front-end page.textarea
Tag to submit the content. you can enter any content here, but I want to perform special processing on the following three methods. what should I do?
Video: you can insert Youku's video code and read it from the database to display the video on the front-end.
Image: after entering the image address, the image can be displayed.
Link: enter an address to display the link
Escape other symbols and codes. For example《script》alert('hello')《script》
,
hello world
And so on.
When you re-edit the content, it displays the previously entered content, rather than the converted content.
The backend language is php. how can I write php? thank you!
Low levels can only be thought of as regular expressions ···