How does the front end implement similar rich text parsing?

The scenario of the

application is a comment function. If I want to @ someone, I need to display @ Xiaoming in input, and the content of input is the content field
of this comment. To generate a comment to the backend POST the following data.

let data = {
  content: [@userid|]1
}

but content is @ Xiaoming when shown in input and in the comments list. The backend wants me to do a rich text parsing function to

@   [@userid|]
GET
[@userid|]  @

the format displayed in the front end is different from that in the actual back end. How can this be realized?

Mar.09,2021

find and cache the userid corresponding to @ Xiaoming, and splice it together when you need to send it to the backend.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ceac-2bacc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ceac-2bacc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?