CN111274760A - Rich text data processing method and device, electronic equipment and computer storage medium - Google Patents

Rich text data processing method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN111274760A
CN111274760A CN202010023736.6A CN202010023736A CN111274760A CN 111274760 A CN111274760 A CN 111274760A CN 202010023736 A CN202010023736 A CN 202010023736A CN 111274760 A CN111274760 A CN 111274760A
Authority
CN
China
Prior art keywords
text data
rich text
information
text
markup language
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010023736.6A
Other languages
Chinese (zh)
Other versions
CN111274760B (en
Inventor
余盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010023736.6A priority Critical patent/CN111274760B/en
Publication of CN111274760A publication Critical patent/CN111274760A/en
Application granted granted Critical
Publication of CN111274760B publication Critical patent/CN111274760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure relates to the technical field of data processing, and discloses a rich text data processing method, a rich text data processing device, electronic equipment and a computer storage medium, wherein the rich text data processing method comprises the following steps: acquiring rich text data to be displayed; then according to the type field of the rich text data to be displayed, performing hypertext markup language character string conversion on the rich text data to be displayed to generate a hypertext markup language character string of a corresponding type; analyzing the character string of the hypertext markup language to generate a corresponding document object model node; and then, the document object model nodes are shown based on the preset template so as to show the rich text data to be shown. The method of the embodiment of the disclosure can perform corresponding conversion processing and analysis processing on the rich text data at the applet end, and correctly display the processed rich text data, so that the applet end supports the rich text data, and the applet end and the PC end can synchronously display the rich text data.

Description

Rich text data processing method and device, electronic equipment and computer storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of data processing, in particular to a rich text data processing method and device, electronic equipment and a computer storage medium.
Background
With the rapid development of information technology and the explosive increase of information quantity, users can conveniently send and receive information by means of various applications, and the display modes of the information are increasingly rich. Taking Text information as an example, people release Text contents with no or few formats before, but users often release Rich Text (Rich Text Format, RTF) contents at present, the Rich Text supports Rich formats, such as character effects, character links and the like, and the Rich Text has good impression for the users and can realize additional functions of click jumping and the like.
At present, rich text is widely used in businesses such as blogs, logs, mails and the like of daily life of users at a Personal Computer (PC) end, however, in the concrete implementation process of the inventor of the present disclosure, it is found that a current applet end cannot correctly display rich text data, and cannot edit the rich text data, that is, does not support the processing of the rich text data, and therefore, a method capable of processing the rich text data in the applet is urgently needed.
Disclosure of Invention
The purpose of the disclosed embodiments is to address at least one of the above-mentioned deficiencies, and it is intended to provide a summary in order to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In one aspect, a rich text data processing method is provided, including:
acquiring rich text data to be displayed;
according to the type field of the rich text data to be displayed, performing hypertext markup language character string conversion on the rich text data to be displayed to generate a corresponding type of hypertext markup language character string;
analyzing the character string of the hypertext markup language to generate a corresponding document object model node;
and displaying the document object model nodes based on a preset template so as to display the rich text data to be displayed.
In one aspect, a rich text data processing apparatus is provided, including:
the acquisition module is used for acquiring rich text data to be displayed;
the conversion module is used for performing hypertext markup language character string conversion on the rich text data to be displayed according to the type field of the rich text data to be displayed to generate a corresponding type of hypertext markup language character string;
the processing module is used for analyzing the character strings of the hypertext markup language and generating corresponding document object model nodes;
and the display module is used for displaying the document object model nodes based on a preset template so as to display the rich text data to be displayed.
In one aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the rich text data processing method is implemented.
In one aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the rich text data processing method described above.
According to the rich text data processing method provided by the embodiment of the disclosure, according to the type field of the rich text data to be displayed, the rich text data to be displayed is subjected to hypertext markup language character string conversion, the generated hypertext markup language character string of the corresponding type is analyzed, the corresponding document object model node is generated, and the document object model node is displayed based on the preset template, so that the rich text data to be displayed can be correspondingly converted and analyzed at the small program end, the processed rich text data can be correctly displayed, the support of the small program end on the rich text data is realized, and the small program end and the PC end can synchronously display the rich text data.
Additional aspects and advantages of embodiments of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic flow chart diagram illustrating a rich text data processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a basic structure of a rich text data processing apparatus according to an embodiment of the present disclosure;
FIG. 3 is a detailed structural diagram of a rich text data processing apparatus according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the embodiments of the present disclosure will be described in further detail below with reference to the accompanying drawings.
The embodiment of the disclosure provides a rich text data processing method and device, an electronic device and a computer storage medium, and aims to solve the above technical problems in the prior art.
The following describes in detail the technical solutions of the embodiments of the present disclosure and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
One embodiment of the present disclosure provides a rich text data processing method, which is performed by a terminal, which may be a desktop device or a mobile terminal. As shown in fig. 1, the method includes:
step S110, acquiring rich text data to be displayed.
Specifically, an application (e.g., an applet) of the terminal may obtain rich text data to be presented from a corresponding server, where the application may obtain the rich text data to be presented from the server by sending an obtaining request to the server, and the application may also receive the rich text data to be presented that is delivered by the server at predetermined time intervals (e.g., 30 milliseconds, 1 second, 1 minute, etc.).
Hereinafter, the application will be specifically described by taking an applet as an example. The applet is an application which can be used without downloading and installing, the dream that the application is 'reachable by a touch' is realized, and the user can open the application by scanning or searching. The concept of 'running after running' is also embodied, and a user does not need to be concerned about whether too many applications are installed. The application will be ubiquitous and readily available without installation and uninstallation.
Specifically, the rich text data to be displayed is rich text data generated based on a rich text editor, draft.
And step S120, according to the type field of the rich text data to be displayed, carrying out hypertext markup language character string conversion on the rich text data to be displayed, and generating a hypertext markup language character string of a corresponding type.
Specifically, after the applet obtains the rich text data to be displayed, the applet can classify the rich text data to be displayed according to a type field (for example, a type field) in the rich text data to be displayed to obtain the rich text data of a corresponding type, and perform HTML (hypertext markup Language) string conversion on the classified rich text data (i.e., the rich text data of the corresponding type) to generate an HTML string of the corresponding type.
If the type field of the rich text data to be displayed comprises an A type field, a B type field and a C type field, the rich text data to be displayed can be subjected to hypertext markup language HTML character string conversion according to the A type field, the B type field and the C type field of the rich text data to be displayed, and a corresponding HTML character string is obtained.
Step S130, analyzing the character string of the hypertext markup language, and generating a corresponding document object model node.
Specifically, after generating an HTML (hypertext markup language) string, the generated HTML string may be parsed to generate a corresponding hypertext markup language (DOM) node. The DOM node is that each component in an XML (extensible markup language) document is a node, the whole document is a document node, and each XML tag is an element node.
Step S140, displaying the document object model nodes based on the preset template so as to display rich text data to be displayed.
Specifically, after the corresponding DOM node is generated, the generated corresponding DOM node may be displayed based on a predetermined template of the applet, thereby implementing display of rich text data to be displayed.
According to the rich text data processing method provided by the embodiment of the disclosure, rich text data to be displayed is subjected to hypertext markup language character string conversion according to the type field of the rich text data to be displayed, the generated hypertext markup language character string of the corresponding type is analyzed, a corresponding document object model node is generated, and the document object model node is displayed based on a preset template, so that the rich text data to be displayed can be subjected to corresponding conversion processing and analysis processing on a small program end, the processed rich text data is correctly displayed, the support of the small program end on the rich text data is realized, and the small program end and a PC end can synchronously display the rich text data.
In a possible implementation manner, according to the type field of the rich text data to be presented, the rich text data to be presented is subjected to HTML string conversion, and the following operation steps may be performed:
according to the type field, dividing rich text data to be displayed into rich text data fragments of corresponding types;
the rich text data segments are converted to HTML strings.
Specifically, in the process of performing hypertext markup language HTML character string conversion on rich text data to be displayed according to the type field of the rich text data to be displayed, the rich text data to be displayed may be divided into rich text data segments of corresponding types according to the type field (for example, type field) of the rich text data to be displayed. If the type fields of the rich text data to be displayed are the type a field, the type B field and the type C field, the rich text data to be displayed can be divided into the rich text data fragments of corresponding types according to the type a field, the type B field and the type C field, so as to obtain the rich text data fragment of the type a, the rich text data fragment of the type B and the rich text data fragment of the type C.
Specifically, after the rich text data segment of type a, the rich text data segment of type B, and the rich text data segment of type C are obtained, the obtained rich text data segments may be converted into HTML character strings, that is, the rich text data segment of type a is subjected to HTML character string conversion to generate an HTML character string of type a, the rich text data segment of type B is subjected to HTML character string conversion to generate an HTML character string of type B, and the rich text data segment of type C is subjected to HTML character string conversion to generate an HTML character string of type C.
It should be noted that the type a field, the type B field, and the type C field are merely exemplary, and in practical applications, there may be more type fields or fewer type fields, and the embodiments of the present application do not limit the fields.
In an alternative, the type a field, the type B field, and the type C field may respectively indicate the specified object prompt information, the uniform resource locator URL, and the text content, and the type includes at least one of the following types: specifying object prompt information; a uniform resource locator, URL; and (4) text content. The prompt information of the designated object can be @ someone, the URL can be a hyperlink address, the text content can be common text except special content such as pictures, emoticons, @ signs, hyperlink addresses and the like, and the common text can be Chinese characters, numbers, corresponding foreign letters or foreign words and the like.
In an alternative, after obtaining the rich text data fragments of the respective types, the rich text data fragments of the respective types may be respectively converted into corresponding HTML strings, wherein in the process of converting the rich text data fragments into the HTML strings, at least one of the following operations may be performed:
(1) the rich text data segment of the textual content is generated into a first predetermined HTML tag string, e.g., < P > tag, and the < P > tag is in the form of a string, i.e., the normal text is generated into the first predetermined HTML tag string of < P > tag.
(2) And generating a second preset HTML (hypertext markup language) label character string by using the rich text data segment of the specified object prompt information, and using the associated operation information of the specified object prompt information as function information of the second preset HTML label character string. Wherein the second predetermined HTML tag string may be an < a > tag string, i.e. the < a > tag is in the form of a string. If the prompt information of the specified object is "@ zhang", the < a > tag is generated for the rich text data fragment corresponding to "@ zhang" and the operation information of the associated operation corresponding to "@ zhang" is clicked, for example, the personal home page of zhang, for example, the friend circle of zhang, and for example, the operation information of other related dynamic information of zhang, etc. are checked, and the operation information is used as the function information of the < a > tag, that is, the associated operation information of the "@ zhang" is bound with the < a > tag character string.
(3) And generating a second preset HTML label character string by using the rich text data segment of the URL, and using the URL as the attribute information of the second preset HTML label character string. Wherein the second predetermined HTML tag string may be the string of the < a > tag. If the URL is https:// www.w3school.com.cn/HTML, the HTML tag string of the < a > tag can be generated from the rich text data segment corresponding to https:// www.w3school.com.cn/HTML, and https:// www.w3school.com.cn/HTML is used as the attribute information of the < a > tag.
In an alternative, after the rich text data segment is converted into the HTML character string, the HTML character string may be subjected to escaping processing according to a first predetermined data format of the applet, so as to obtain the HTML character string in the first predetermined data format, that is, the HTML character string is escaped into a data format that can be processed by the applet, so that the subsequent processing of the HTML character string is facilitated.
After the HTML string is transferred to the data format that can be processed by the applet, the HTML string in the first predetermined data format needs to be analyzed when the HTML string is analyzed, that is, the HTML string analyzed by the applet is the HTML string in the data format that can be processed by the applet.
In one alternative, the HTML strings may be traversed to map different HTML tags to specific tags that can be displayed on the applet during parsing of the HTML strings to generate corresponding DOM nodes.
As an example, an HTML string may be traversed if the HTML string is detected as' <! - -' begin, mark the HTML string as a comment node; if it is detected that the HTML string starts with '<', it is marked as a start tag, and if it is detected that the HTML string starts with '<' >, it is marked as an end tag. The start tag and the end tag are paired into corresponding DOM nodes, that is, the start tag and the end tag paired with the start tag are determined, and corresponding DOM nodes are generated according to the start tag and the end tag.
In one application scenario, the following operations may be performed: analyzing the HTML character string of the type A to generate a DOM node of the HTML character string of the type A, analyzing the HTML character string of the type B to generate a DOM node of the HTML character string of the type B, and analyzing the HTML character string of the type C to generate a DOM node of the HTML character string of the type C.
Specifically, after the corresponding DOM nodes are generated according to the start tag and the end tag, the correspondingly generated DOM nodes may be displayed based on a predetermined template of the applet to display the rich text data to be displayed. In practical application, the applet can circularly display the corresponding generated DOM nodes based on the preset template of the applet, so that all rich text data to be displayed are displayed.
In a possible implementation manner, the applet may further obtain text information of the rich text data to be generated, generate the rich text data of the text information based on a rich text editor framework draft.
If the user T and the user P perform information interaction through the applet, the applet installed in the terminal of the user T may acquire text information of rich text data to be generated, which is input by the user T, generate corresponding rich text data from the text information based on draft. Meanwhile, the applet installed in the terminal of the user P may request the server to acquire the rich text data sent by the user T through the applet, so as to display the rich text data, and certainly, after receiving the rich text data sent by the user T through the applet, the server may also actively send the rich text data to the applet installed in the terminal of the user P, so as to display the rich text data.
In particular, in the process of generating rich text data of text information based on draft.js, the applet can determine at least one type of text associated information in specified object prompt information (such as @ someone), a URL (hyperlink address) and text content included in the text information according to a regular expression; and then analyzing the text associated information, and splicing the analysis results according to a second preset data format of draft.
Specifically, when the type is the prompt information of the specified object, the text associated information includes identification information of the specified object, text information of the prompt information of the specified object, text length of the text information of the prompt information of the specified object, and text start offset position of the text information of the prompt information of the specified object; when the type is URL, the text associated information comprises text information of the URL, the text length of the text information of the URL and the text starting offset position of the text information of the URL; when the type is the text content, the text associated information includes text information of the text content, a text length of the text information of the text content, and a text start offset position of the text information of the text content.
In an application scenario, different types of text data can be stored in an array in a segmented manner, and simultaneously, additional information required by each type is placed in an entity map (EntityMap), wherein for the type of the specified object prompt information, the corresponding additional information can be identification information of the specified object, text length of text information of the specified object prompt information and text starting offset position of the text information of the specified object prompt information; for the type of URL, the corresponding additional information may be a text length of the text information of the URL and a text start offset position of the text information of the URL; for the type of text content, the corresponding additional information may be a text length of the text content and a text start offset position of the text content.
Specifically, after the text associated information is obtained, the text associated information may be analyzed, and the analysis results may be spliced according to a second predetermined data format of draft. And splicing the analysis results according to a second preset data format of draft.js based on the sequence of at least one item of text information of the prompt information of the specified object, the text information of the URL and the text information of the character content included in the text information in the splicing process. The second predetermined data format may be a JSON (JavaScript Object Notation) data format.
Through the method of the embodiment of the application, the rich text data based on the draft can be synchronously displayed by the applet end and the PC end, and the prompt information of the specified object and the rich text data of the URL type can be edited in the applet.
Fig. 2 is a schematic structural diagram of a rich text data processing apparatus according to another embodiment of the present disclosure, as shown in fig. 2, the apparatus 20 may include an obtaining module 21, a converting module 22, a processing module 23, and a presenting module 24, where:
the acquiring module 21 is configured to acquire rich text data to be displayed;
the conversion module 22 is configured to perform hypertext markup language character string conversion on the rich text data to be displayed according to the type field of the rich text data to be displayed, and generate a hypertext markup language character string of a corresponding type;
the processing module 23 is configured to parse the hypertext markup language character string to generate a corresponding document object model node;
and the display module 24 is used for displaying the document object model nodes based on the preset template so as to display the rich text data to be displayed.
Fig. 3 is a detailed structural schematic diagram of a rich text data processing apparatus according to still another embodiment of the present disclosure, as shown in fig. 3, the apparatus 30 may include an obtaining module 31, a converting module 32, a processing module 33, a displaying module 34, an escaping module 35, and a generating module 36, where functions implemented by the obtaining module 31 in fig. 3 are the same as the obtaining module 21 in fig. 2, functions implemented by the converting module 32 in fig. 3 are the same as the converting module 22 in fig. 2, functions implemented by the processing module 33 in fig. 3 are the same as the processing module 23 in fig. 2, functions implemented by the displaying module 34 in fig. 3 are the same as the displaying module 24 in fig. 2, and are not repeated herein. The rich text data processing apparatus shown in fig. 3 is described in detail below:
the conversion module 32 is specifically configured to:
according to the type field, dividing rich text data to be displayed into rich text data fragments of corresponding types;
the rich text data segments are converted into hypertext markup language strings.
In one possible implementation, the types include at least one of:
specifying object prompt information; a uniform resource locator; and (4) text content.
In one possible implementation, the conversion module 32 performs at least one of the following when converting the rich text data segment into a hypertext markup language string:
generating a first preset hypertext markup language tag character string from the rich text data segment of the text content;
generating a second preset hypertext markup language tag character string from the rich text data segment of the prompt information of the specified object, and using the associated operation information of the prompt information of the specified object as function information of the second preset hypertext markup language tag character string;
and generating a second preset hypertext markup language tag character string by using the rich text data segment of the uniform resource locator, and using the uniform resource locator as attribute information of the second preset hypertext markup language tag character string.
In a possible implementation, the system further includes an escape module 35, where:
the escaping module 35 is configured to escape the hypertext markup language character string according to the first predetermined data format to obtain a hypertext markup language character string in the first predetermined data format;
the processing module 33 is specifically configured to parse the html character string in the first predetermined data format when parsing the html character string.
In a possible implementation manner, the processing module 33, when generating the corresponding document object model node, is specifically configured to:
traversing the hypertext tag language character string, and determining a starting tag and an ending tag matched with the starting tag;
and generating corresponding document object model nodes according to the starting label and the ending label.
In one possible implementation, the apparatus further includes a generating module 36, where:
and the generating module 36 is configured to acquire text information of the rich text data to be generated, generate the rich text data of the text information based on the rich text editor framework, and send the rich text data to a corresponding server.
In a possible implementation manner, the generating module 36, when generating rich text data of the text information based on the rich text editor framework, is specifically configured to:
determining at least one type of text associated information in specified object prompt information, uniform resource locators and character contents included in the text information according to the regular expression:
and analyzing the text associated information, and splicing the analysis results according to a second preset data format of the rich text editor frame to generate rich text data of the text information.
In a possible implementation manner, when the type is the prompt information of the specified object, the text association information includes identification information of the specified object, text information of the prompt information of the specified object, a text length of the text information of the prompt information of the specified object, and a text start offset position of the text information of the prompt information of the specified object;
when the type is the uniform resource locator, the text associated information comprises text information of the uniform resource locator, the text length of the text information of the uniform resource locator and the text starting offset position of the text information of the uniform resource locator;
when the type is the text content, the text associated information includes text information of the text content, a text length of the text information of the text content, and a text start offset position of the text information of the text content.
According to the device provided by the embodiment of the disclosure, according to the type field of the rich text data to be displayed, the rich text data to be displayed is subjected to hypertext markup language character string conversion, the generated hypertext markup language character string of the corresponding type is analyzed, the corresponding document object model node is generated, and the document object model node is displayed based on the preset template, so that the rich text data to be displayed can be correspondingly converted and analyzed at the small program end, the processed rich text data can be correctly displayed, the support of the small program end on the rich text data is realized, and the small program end and the PC end can synchronously display the rich text data.
It should be noted that the embodiments of the present disclosure are apparatuses corresponding to the embodiments of the method items, and the embodiments of the present disclosure can be implemented in cooperation with the embodiments of the method items. The related technical details mentioned in the above method embodiments are still valid in the embodiments of the present disclosure, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the embodiments of the present disclosure can also be applied to the above-described method embodiments.
Referring now to FIG. 4, a block diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device comprises a memory and a processor, wherein the processor may be referred to as a processing device 401 described below, and the memory comprises at least one of a Read Only Memory (ROM)402, a Random Access Memory (RAM)403, and a storage device 408, which are described in the following, and is specifically as follows:
as shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring rich text data to be displayed;
according to the type field of the rich text data to be displayed, performing hypertext markup language character string conversion on the rich text data to be displayed to generate a corresponding type of hypertext markup language character string;
analyzing the character string of the hypertext markup language to generate a corresponding document object model node;
and displaying the document object model nodes based on a preset template so as to display the rich text data to be displayed.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. For example, the obtaining module may be further described as a module that obtains at least one event processing manner corresponding to a predetermined live event when the occurrence of the predetermined live event is detected.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a rich text data processing method including:
acquiring rich text data to be displayed;
according to the type field of the rich text data to be displayed, performing hypertext markup language character string conversion on the rich text data to be displayed to generate a corresponding type of hypertext markup language character string;
analyzing the character string of the hypertext markup language to generate a corresponding document object model node;
and displaying the document object model nodes based on a preset template so as to display the rich text data to be displayed.
In one possible implementation manner, performing hypertext markup language string conversion on rich text data to be displayed according to a type field of the rich text data to be displayed includes:
according to the type field, dividing rich text data to be displayed into rich text data fragments of corresponding types;
the rich text data segments are converted into hypertext markup language strings.
In one possible implementation, the types include at least one of:
specifying object prompt information; a uniform resource locator; and (4) text content.
In one possible implementation, converting the rich text data segment into a hypertext markup language string includes at least one of:
generating a first preset hypertext markup language tag character string from the rich text data segment of the text content;
generating a second preset hypertext markup language tag character string from the rich text data segment of the prompt information of the specified object, and using the associated operation information of the prompt information of the specified object as function information of the second preset hypertext markup language tag character string;
and generating a second preset hypertext markup language tag character string by using the rich text data segment of the uniform resource locator, and using the uniform resource locator as attribute information of the second preset hypertext markup language tag character string.
In one possible implementation, after converting the rich text data segment into a hypertext markup language character string, the method further includes:
performing escape processing on the hypertext markup language character string according to a first preset data format to obtain the hypertext markup language character string in the first preset data format;
parsing a hypertext markup language string, comprising:
a hypertext markup language string in a first predetermined data format is parsed.
In one possible implementation, generating corresponding document object model nodes includes:
traversing the hypertext tag language character string, and determining a starting tag and an ending tag matched with the starting tag;
and generating corresponding document object model nodes according to the starting label and the ending label.
In one possible implementation, the method further includes:
and acquiring text information of the rich text data to be generated, generating the rich text data of the text information based on the rich text editor framework, and sending the rich text data to the corresponding server.
In one possible implementation, generating rich text data of the text information based on the rich text editor framework includes:
determining at least one type of text associated information in specified object prompt information, uniform resource locators and character contents included in the text information according to the regular expression:
and analyzing the text associated information, and splicing the analysis results according to a second preset data format of the rich text editor frame to generate rich text data of the text information.
In a possible implementation manner, when the type is the prompt information of the specified object, the text association information includes identification information of the specified object, text information of the prompt information of the specified object, a text length of the text information of the prompt information of the specified object, and a text start offset position of the text information of the prompt information of the specified object;
when the type is the uniform resource locator, the text associated information comprises text information of the uniform resource locator, the text length of the text information of the uniform resource locator and the text starting offset position of the text information of the uniform resource locator;
when the type is the text content, the text associated information includes text information of the text content, a text length of the text information of the text content, and a text start offset position of the text information of the text content.
According to one or more embodiments of the present disclosure, there is provided a rich text data processing apparatus including:
the acquisition module is used for acquiring rich text data to be displayed;
the conversion module is used for performing hypertext markup language character string conversion on the rich text data to be displayed according to the type field of the rich text data to be displayed to generate a corresponding type of hypertext markup language character string;
the processing module is used for analyzing the character strings of the hypertext markup language and generating corresponding document object model nodes;
and the display module is used for displaying the document object model nodes based on a preset template so as to display the rich text data to be displayed.
In a possible implementation, the conversion module is specifically configured to:
according to the type field, dividing rich text data to be displayed into rich text data fragments of corresponding types;
the rich text data segments are converted into hypertext markup language strings.
In one possible implementation, the types include at least one of:
specifying object prompt information; a uniform resource locator; and (4) text content.
In one possible implementation, the conversion module, when converting the rich text data segment into a hypertext markup language string, performs at least one of:
generating a first preset hypertext markup language tag character string from the rich text data segment of the text content;
generating a second preset hypertext markup language tag character string from the rich text data segment of the prompt information of the specified object, and using the associated operation information of the prompt information of the specified object as function information of the second preset hypertext markup language tag character string;
and generating a second preset hypertext markup language tag character string by using the rich text data segment of the uniform resource locator, and using the uniform resource locator as attribute information of the second preset hypertext markup language tag character string.
In a possible implementation manner, the method further includes an escape module:
the escape module is used for escaping the hypertext markup language character string according to a first preset data format to obtain the hypertext markup language character string in the first preset data format;
the processing module is specifically configured to parse the html character string in the first predetermined data format when parsing the html character string.
In a possible implementation manner, when generating the corresponding document object model node, the processing module is specifically configured to:
traversing the hypertext tag language character string, and determining a starting tag and an ending tag matched with the starting tag;
and generating corresponding document object model nodes according to the starting label and the ending label.
In one possible implementation, the apparatus further includes a generating module;
and the generating module is used for acquiring the text information of the rich text data to be generated, generating the rich text data of the text information based on the rich text editor framework, and sending the rich text data to the corresponding server.
In a possible implementation manner, when generating rich text data of the text information based on the rich text editor framework, the generating module is specifically configured to:
determining at least one type of text associated information in specified object prompt information, uniform resource locators and character contents included in the text information according to the regular expression:
and analyzing the text associated information, and splicing the analysis results according to a second preset data format of the rich text editor frame to generate rich text data of the text information.
In a possible implementation manner, when the type is the prompt information of the specified object, the text association information includes identification information of the specified object, text information of the prompt information of the specified object, a text length of the text information of the prompt information of the specified object, and a text start offset position of the text information of the prompt information of the specified object;
when the type is the uniform resource locator, the text associated information comprises text information of the uniform resource locator, the text length of the text information of the uniform resource locator and the text starting offset position of the text information of the uniform resource locator;
when the type is the text content, the text associated information includes text information of the text content, a text length of the text information of the text content, and a text start offset position of the text information of the text content.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (12)

1. A rich text data processing method, comprising:
acquiring rich text data to be displayed;
according to the type field of the rich text data to be displayed, performing hypertext markup language character string conversion on the rich text data to be displayed to generate a hypertext markup language character string of a corresponding type;
analyzing the hypertext markup language character string to generate a corresponding document object model node;
and displaying the document object model nodes based on a preset template so as to display the rich text data to be displayed.
2. The method according to claim 1, wherein the performing hypertext markup language character string conversion on the rich text data to be presented according to the type field of the rich text data to be presented comprises:
according to the type field, dividing the rich text data to be displayed into rich text data fragments of corresponding types;
and converting the rich text data segment into a hypertext markup language character string.
3. The method of claim 2, wherein the type comprises at least one of:
specifying object prompt information; a uniform resource locator; and (4) text content.
4. The method of claim 3, wherein converting the rich text data segment into a hypertext markup language string comprises at least one of:
generating a first preset hypertext markup language tag character string from the rich text data segment of the literal content;
generating a second preset hypertext markup language tag character string from the rich text data segment of the prompt information of the specified object, and using the associated operation information of the prompt information of the specified object as function information of the second preset hypertext markup language tag character string;
and generating the rich text data segment of the uniform resource locator into the second preset hypertext markup language tag character string, and using the uniform resource locator as the attribute information of the second preset hypertext markup language tag character string.
5. The method according to any one of claims 2-4, further comprising, after converting the rich text data segment into a hypertext markup language string:
performing escape processing on the hypertext markup language character string according to a first preset data format to obtain the hypertext markup language character string in the first preset data format;
the parsing the hypertext markup language string includes:
and analyzing the hypertext markup language character string in the first preset data format.
6. The method of claim 1, wherein generating the corresponding document object model node comprises:
traversing the hypertext tag language character string, and determining a starting tag and an ending tag matched with the starting tag;
and generating a corresponding document object model node according to the starting label and the ending label.
7. The method of claim 1, further comprising:
acquiring text information of rich text data to be generated, generating the rich text data of the text information based on a rich text editor frame, and sending the rich text data of the text information to a corresponding server.
8. The method of claim 7, wherein generating rich text data of the textual information based on a rich text editor framework comprises:
determining at least one type of text associated information in designated object prompt information, uniform resource locators and character contents included in the text information according to the regular expression:
and analyzing the text associated information, and splicing analysis results according to a second preset data format of the rich text editor frame to generate rich text data of the text information.
9. The method according to claim 8, wherein when the type is the specified object prompt information, the text association information includes identification information of the specified object, text information of the specified object prompt information, text length of the text information of the specified object prompt information, and text start offset position of the text information of the specified object prompt information;
when the type is the uniform resource locator, the text associated information comprises text information of the uniform resource locator, a text length of the text information of the uniform resource locator and a text starting offset position of the text information of the uniform resource locator;
when the type is the text content, the text associated information comprises text information of the text content, text length of the text information of the text content and a text starting offset position of the text information of the text content.
10. A rich text data processing apparatus characterized by comprising:
the acquisition module is used for acquiring rich text data to be displayed;
the conversion module is used for carrying out hypertext markup language character string conversion on the rich text data to be displayed according to the type field of the rich text data to be displayed to generate a hypertext markup language character string of a corresponding type;
the processing module is used for analyzing the hypertext markup language character string and generating a corresponding document object model node;
and the display module is used for displaying the document object model nodes based on a preset template so as to display the rich text data to be displayed.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the rich text data processing method of any one of claims 1-9 when executing the program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the rich text data processing method of any one of claims 1 to 9.
CN202010023736.6A 2020-01-09 2020-01-09 Rich text data processing method and device, electronic equipment and computer storage medium Active CN111274760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010023736.6A CN111274760B (en) 2020-01-09 2020-01-09 Rich text data processing method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010023736.6A CN111274760B (en) 2020-01-09 2020-01-09 Rich text data processing method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111274760A true CN111274760A (en) 2020-06-12
CN111274760B CN111274760B (en) 2023-07-18

Family

ID=70998929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010023736.6A Active CN111274760B (en) 2020-01-09 2020-01-09 Rich text data processing method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111274760B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112001153A (en) * 2020-08-12 2020-11-27 腾讯科技(深圳)有限公司 Text processing method and device, computer equipment and storage medium
CN112069775A (en) * 2020-08-21 2020-12-11 完美世界控股集团有限公司 Data conversion method and device, storage medium and electronic device
CN112634406A (en) * 2020-12-24 2021-04-09 北京百度网讯科技有限公司 Method, device, electronic equipment, storage medium and program product for generating picture
CN112966265A (en) * 2021-03-01 2021-06-15 京东数字科技控股股份有限公司 Rich text security processing method and device, electronic equipment and storage medium
CN113050808A (en) * 2021-04-22 2021-06-29 北京百度网讯科技有限公司 Method and device for highlighting target text in input box
CN113190155A (en) * 2021-04-29 2021-07-30 上海掌门科技有限公司 Information processing method, device and storage medium
CN113591438A (en) * 2021-07-30 2021-11-02 远光软件股份有限公司 Text conversion method, electronic equipment and computer readable storage device
CN113656006A (en) * 2021-08-18 2021-11-16 广东触电传媒科技有限公司 Rich text rendering method and rendering equipment
CN113779235A (en) * 2021-09-13 2021-12-10 北京市律典通科技有限公司 Word document outline recognition processing method and device
CN114237740A (en) * 2021-12-08 2022-03-25 中盈优创资讯科技有限公司 White-box configuration method and device based on tagged language
CN114398578A (en) * 2021-12-23 2022-04-26 网易有道信息技术(北京)有限公司 Method for preprocessing HTML character string and related product
CN114444438A (en) * 2021-12-23 2022-05-06 北京罗克维尔斯科技有限公司 Text drawing method and device, electronic equipment and storage medium
CN114500505A (en) * 2022-01-19 2022-05-13 北京百度网讯科技有限公司 Text processing method and device and electronic equipment
CN115526160A (en) * 2022-10-21 2022-12-27 广州市玄武无线科技股份有限公司 Rich text processing method, device and equipment and storage medium
CN115544327A (en) * 2022-10-20 2022-12-30 北京圜晖科技有限公司 PMI data display method and device, electronic equipment and storage medium
CN115577683A (en) * 2022-11-23 2023-01-06 中国人民解放军国防科技大学 HTML rich text content conversion method, device, equipment and medium
CN115859919A (en) * 2023-03-02 2023-03-28 北京智启蓝墨信息技术有限公司 Method and system for storing structured rich-format text
CN117252153A (en) * 2023-11-17 2023-12-19 之江实验室 Method, apparatus, and storage medium for processing rich text data for large language model

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882075A (en) * 2010-03-24 2010-11-10 深圳市万兴软件有限公司 Method for editing rich text and for restoring and displaying rich text through FLASH
CN103034622A (en) * 2012-12-05 2013-04-10 北京奇虎科技有限公司 Rich text content processing method and server
CN104573131A (en) * 2015-02-15 2015-04-29 北京京东尚科信息技术有限公司 Method for generating commodity detail page data and terminal device
CN105843787A (en) * 2016-03-24 2016-08-10 武汉斗鱼网络科技有限公司 Rich text editing method and system
US20170083480A1 (en) * 2015-09-21 2017-03-23 Facebook, Inc. Rich text editor
CN106897251A (en) * 2016-07-01 2017-06-27 阿里巴巴集团控股有限公司 Rich text methods of exhibiting and device
CN108881101A (en) * 2017-05-08 2018-11-23 腾讯科技(深圳)有限公司 A kind of cross site scripting loophole defence method, device and client based on DOM Document Object Model
CN108959392A (en) * 2018-05-31 2018-12-07 阿里巴巴集团控股有限公司 The method, device and equipment of rich text is shown on 3D model
CN109582932A (en) * 2018-10-15 2019-04-05 深圳点猫科技有限公司 Wechat small routine rich text conversion method and electronic equipment based on educational system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882075A (en) * 2010-03-24 2010-11-10 深圳市万兴软件有限公司 Method for editing rich text and for restoring and displaying rich text through FLASH
CN103034622A (en) * 2012-12-05 2013-04-10 北京奇虎科技有限公司 Rich text content processing method and server
CN104573131A (en) * 2015-02-15 2015-04-29 北京京东尚科信息技术有限公司 Method for generating commodity detail page data and terminal device
US20170083480A1 (en) * 2015-09-21 2017-03-23 Facebook, Inc. Rich text editor
CN105843787A (en) * 2016-03-24 2016-08-10 武汉斗鱼网络科技有限公司 Rich text editing method and system
CN106897251A (en) * 2016-07-01 2017-06-27 阿里巴巴集团控股有限公司 Rich text methods of exhibiting and device
CN108881101A (en) * 2017-05-08 2018-11-23 腾讯科技(深圳)有限公司 A kind of cross site scripting loophole defence method, device and client based on DOM Document Object Model
CN108959392A (en) * 2018-05-31 2018-12-07 阿里巴巴集团控股有限公司 The method, device and equipment of rich text is shown on 3D model
CN109582932A (en) * 2018-10-15 2019-04-05 深圳点猫科技有限公司 Wechat small routine rich text conversion method and electronic equipment based on educational system

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112001153A (en) * 2020-08-12 2020-11-27 腾讯科技(深圳)有限公司 Text processing method and device, computer equipment and storage medium
CN112001153B (en) * 2020-08-12 2024-05-17 腾讯科技(深圳)有限公司 Text processing method, device, computer equipment and storage medium
CN112069775A (en) * 2020-08-21 2020-12-11 完美世界控股集团有限公司 Data conversion method and device, storage medium and electronic device
CN112634406A (en) * 2020-12-24 2021-04-09 北京百度网讯科技有限公司 Method, device, electronic equipment, storage medium and program product for generating picture
CN112966265A (en) * 2021-03-01 2021-06-15 京东数字科技控股股份有限公司 Rich text security processing method and device, electronic equipment and storage medium
CN113050808B (en) * 2021-04-22 2023-11-28 北京百度网讯科技有限公司 Method and device for highlighting target text in input box
CN113050808A (en) * 2021-04-22 2021-06-29 北京百度网讯科技有限公司 Method and device for highlighting target text in input box
CN113190155A (en) * 2021-04-29 2021-07-30 上海掌门科技有限公司 Information processing method, device and storage medium
CN113591438A (en) * 2021-07-30 2021-11-02 远光软件股份有限公司 Text conversion method, electronic equipment and computer readable storage device
CN113591438B (en) * 2021-07-30 2024-01-12 远光软件股份有限公司 Text conversion method, electronic equipment and computer readable storage device
CN113656006A (en) * 2021-08-18 2021-11-16 广东触电传媒科技有限公司 Rich text rendering method and rendering equipment
CN113656006B (en) * 2021-08-18 2023-06-30 广东触电传媒科技有限公司 Rich text rendering method and rendering device
CN113779235A (en) * 2021-09-13 2021-12-10 北京市律典通科技有限公司 Word document outline recognition processing method and device
CN113779235B (en) * 2021-09-13 2024-02-02 北京市律典通科技有限公司 Word document outline recognition processing method and device
CN114237740A (en) * 2021-12-08 2022-03-25 中盈优创资讯科技有限公司 White-box configuration method and device based on tagged language
CN114398578A (en) * 2021-12-23 2022-04-26 网易有道信息技术(北京)有限公司 Method for preprocessing HTML character string and related product
CN114444438A (en) * 2021-12-23 2022-05-06 北京罗克维尔斯科技有限公司 Text drawing method and device, electronic equipment and storage medium
CN114500505A (en) * 2022-01-19 2022-05-13 北京百度网讯科技有限公司 Text processing method and device and electronic equipment
CN114500505B (en) * 2022-01-19 2024-05-28 北京百度网讯科技有限公司 Text processing method and device and electronic equipment
CN115544327A (en) * 2022-10-20 2022-12-30 北京圜晖科技有限公司 PMI data display method and device, electronic equipment and storage medium
CN115526160A (en) * 2022-10-21 2022-12-27 广州市玄武无线科技股份有限公司 Rich text processing method, device and equipment and storage medium
CN115577683A (en) * 2022-11-23 2023-01-06 中国人民解放军国防科技大学 HTML rich text content conversion method, device, equipment and medium
CN115859919A (en) * 2023-03-02 2023-03-28 北京智启蓝墨信息技术有限公司 Method and system for storing structured rich-format text
CN117252153B (en) * 2023-11-17 2024-02-02 之江实验室 Method, apparatus, and storage medium for processing rich text data for large language model
CN117252153A (en) * 2023-11-17 2023-12-19 之江实验室 Method, apparatus, and storage medium for processing rich text data for large language model

Also Published As

Publication number Publication date
CN111274760B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN111274760B (en) Rich text data processing method and device, electronic equipment and computer storage medium
CN109359194B (en) Method and apparatus for predicting information categories
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN110780874B (en) Method and device for generating information
CN111324342B (en) Method, device, medium and electronic equipment for generating interface layer code
US11886798B2 (en) Method and apparatus for obtaining loading time length of image in webpage, and electronic device
CN111625308B (en) Information display method and device and electronic equipment
CN111314388B (en) Method and apparatus for detecting SQL injection
CN109902726B (en) Resume information processing method and device
CN112596738B (en) Method and device for determining front-end page to be tested, storage medium and electronic equipment
CN114443905A (en) Interface document updating method and device, electronic equipment and readable storage medium
CN112632425B (en) Method, device, equipment and storage medium for generating offline resource file
CN113050942A (en) Page generation method and device, readable medium and electronic equipment
CN111708680A (en) Error reporting information analysis method and device, electronic equipment and storage medium
CN112954056A (en) Monitoring data processing method and device, electronic equipment and storage medium
CN109947526B (en) Method and apparatus for outputting information
CN116860286A (en) Page dynamic update method, device, electronic equipment and computer readable medium
CN112084441A (en) Information retrieval method and device and electronic equipment
CN112817874A (en) User interface test method, device, equipment and medium
CN110795670A (en) Webpage image monitoring method and device, electronic equipment and readable storage medium
CN113704079A (en) Interface testing method and device based on Protobuf
CN113779952B (en) Text processing method and device and electronic equipment
CN112287097B (en) Method and device for analyzing markup language text, storage medium and electronic equipment
CN111405342B (en) Rich text message display method, device, system, medium and electronic equipment
CN116561015B (en) Map application testing method, electronic device and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant