CN114048708A - Automatic typesetting method and system based on rich text editor - Google Patents
Automatic typesetting method and system based on rich text editor Download PDFInfo
- Publication number
- CN114048708A CN114048708A CN202210034183.3A CN202210034183A CN114048708A CN 114048708 A CN114048708 A CN 114048708A CN 202210034183 A CN202210034183 A CN 202210034183A CN 114048708 A CN114048708 A CN 114048708A
- Authority
- CN
- China
- Prior art keywords
- rich text
- node data
- style
- text editor
- editor
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/335—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention relates to an automatic typesetting method and system based on a rich text editor, and belongs to the technical field of rich text editing. According to the method and the device, the obtained rich text is subjected to label filtering and format removal processing, so that special labels and useless labels contained in the original text can be effectively removed, and the problems of disordered styles, disordered layout, misplaced contents and the like in the prior art are solved. Moreover, the method and the device can effectively solve the problem that the picture is not centered in the prior art by centering the picture contained in the rich text, and further, the method and the device can automatically typeset the processed rich text based on the automatic typesetting style menu and render the style, and can further solve the problems that the rich text style in the prior art can not be rendered and the like.
Description
Technical Field
The invention relates to the technical field of rich text editing, in particular to an automatic typesetting method and an automatic typesetting system based on a rich text editor.
Background
The automatic content typesetting function of the current rich text editor is not complete, and is embodied in several aspects. First, if the news is copied from the WeChat public, the news will be confused by the own style of the WeChat (e.g. < SECTION > tag, < ARTICLE > tag). Second, multiple tags (e.g., < DIV > tags) nest too deeply resulting in layout confusion and content misplacement. Thirdly, the picture is not centered during automatic typesetting. Fourth, the rich text styles are not rendered while typesetting automatically.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an automatic typesetting method and system based on a rich text editor.
In order to achieve the purpose, the invention provides the following scheme:
an automatic typesetting method based on a rich text editor comprises the following steps:
initializing the rich text editor;
acquiring a rich text, and analyzing the rich text to obtain node data of an analysis object;
performing label filtering and format removing processing on the node data of the analysis object;
centering the pictures contained in the rich text;
adopting a JavaScript script to set an automatic typesetting style menu of the initialized rich text editor;
automatically typesetting the processed rich text based on the automatic typesetting style menu, and performing style rendering; the processed rich text comprises: and performing label filtering and format removing processing on the rich text and the rich text subjected to picture centering processing.
Preferably, the method further comprises the following steps:
and filtering the node data of the analysis object by adopting a preset cross-site script blacklist keyword list so as to delete the character strings conforming to the cross-site script blacklist keywords.
Preferably, the method for filtering the analysis object node data by using the preset cross-site script blacklist keyword list to delete the character strings conforming to the cross-site script blacklist keywords specifically comprises the following steps:
and traversing the object nodes in the analysis object node data, and filtering the character strings in the object nodes, which accord with a preset cross-site script blacklist keyword list, by adopting a replace function.
Preferably, the initializing operation of the rich text editor specifically includes:
and initializing an operation menu of the rich text editor by adopting a JavaScript script, and binding a processing event for monitoring user operation through addListener.
Preferably, the acquiring the rich text and analyzing the rich text to obtain analysis object node data specifically includes:
acquiring character strings in the rich text, and analyzing the character strings by adopting the initialized rich text editor to obtain node data of an analysis object; the parsing object node data includes: tag data and tag content.
Preferably, the obtaining of the character string in the rich text, and analyzing the character string by using the initialized rich text editor to obtain analysis object node data specifically include:
generating a trigger event when a text selection in a current initialization rich text editor is changed;
and acquiring rich text change based on the trigger event, and analyzing the character string to obtain node data of an analysis object.
Preferably, the tag filtering and format removing processing on the node data of the analysis object specifically includes:
traversing object nodes in the data of the parsed object nodes, and removing style attributes of the object nodes by using a removeAttr () method;
traversing object nodes in the analyzed object node data, and removing tags which accord with preset removal style/text tag strategy rules in the object nodes by using a remove method of a DOM structure;
traversing object nodes in the analyzed object node data, and performing label replacement processing on labels in the object nodes, which accord with preset replacement filtering label strategy rules, by using a rename method of a DOM structure;
and performing escape character reduction on the character strings which accord with the escape rules in the object nodes according to a preset escape character reduction list.
Preferably, the centering process on the picture contained in the rich text specifically includes:
determining all img tags in the rich text using a querySector () method;
a setStyle method is used to add a centering attribute to all pictures in the rich text based on the img tags.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the automatic typesetting method based on the rich text editor, the obtained rich text is subjected to label filtering and format removal, so that special labels and useless labels contained in the original text can be effectively removed, and the problems of disordered styles, disordered layout, misplaced contents and the like in the prior art are solved. Moreover, the method and the device can effectively solve the problem that the picture is not centered in the prior art by centering the picture contained in the rich text, and further, the method and the device can automatically typeset the processed rich text based on the automatic typesetting style menu and render the style, and can further solve the problems that the rich text style in the prior art can not be rendered and the like.
Corresponding to the automatic typesetting method based on the rich text editor, the invention also provides two implementation systems, which are specifically as follows:
the automatic typesetting system based on the rich text editor comprises the following components:
the initialization operation module is used for carrying out initialization operation on the rich text editor;
the rich text analysis module is used for acquiring a rich text and analyzing the rich text to obtain analysis object node data;
the label-format processing module is used for carrying out label filtering and format removing processing on the node data of the analysis object;
the centering processing module is used for centering the pictures contained in the rich text;
the automatic typesetting style menu setting module is used for setting an automatic typesetting style menu of the initialized rich text editor by adopting a JavaScript script;
the typesetting-rendering module is used for automatically typesetting the processed rich text based on the automatic typesetting style menu and rendering the style; the processed rich text comprises: and performing label filtering and format removing processing on the rich text and the rich text subjected to picture centering processing.
Another automatic typesetting system based on a rich text editor comprises: a processor and a memory;
the memory has stored therein a software program for a computer; the computer software program is used for executing the provided automatic typesetting method based on the rich text editor;
the processor is connected with the memory; the processor is used for calling and executing the computer software program.
The two automatic typesetting systems based on the rich text editor provided by the invention achieve the same technical effects as the automatic typesetting method based on the rich text editor provided by the invention, so the technical effects are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of an automatic typesetting method based on a rich text editor provided by the invention;
FIG. 2 is a frame diagram of steps of an embodiment of an automatic typesetting method based on a rich text editor;
FIG. 3 is a flowchart illustrating the operation of escape character reduction in the automatic typesetting of the rich text editor according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an automatic typesetting system based on a rich text editor provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide an automatic typesetting method and system based on a rich text editor, which aim to solve the problems of disordered style, disordered layout, content dislocation, non-centered pictures, incapability of rendering rich text styles and the like in the automatic content typesetting process of the rich text editor in the prior art, and further improve the accuracy and safety of the automatically typesetted rich text.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As shown in fig. 1, the automatic typesetting method based on the rich text editor provided by the present invention includes:
step 100: and initializing the rich text editor. In the actual operation process, a JavaScript script can be adopted to initialize the rich text editor operation menu, and the addListener is used to bind the processing event for monitoring the user operation. Event edge.
Step 101: and acquiring the rich text, and analyzing the rich text to obtain node data of an analysis object. Specifically, character strings in the rich text are obtained, and the character strings are analyzed by adopting an initialized rich text editor to obtain node data of an analysis object. Parsing the object node data includes: tag data and tag content. In an actual operation process, when an event edge _ list ("content change", function () { }) is triggered when the content of the rich text changes, a character string of the rich text can be acquired to provide preparation for parsing the character string of the rich text. The JavaScript is an object-and event-driven interpreted scripting language with safety performance, can directly respond to the input of a client in an event-driven mode by applying an object created by the JavaScript, does not allow to access a local hard disk, cannot write data into a server, does not allow to modify and delete a network document, and can only realize information browsing or dynamic interaction through a browser, thereby effectively preventing the data from being lost and being widely applied to Web application. Based on the above, the invention adopts JavaScript to analyze the character string into the object comprising the label data and the content, so as to obtain the node data of the analysis object.
Step 102: and carrying out label filtering and format removal processing on the node data of the analysis object. In practice, a remove style tab policy (remove text style by clearing the style property of the tab, which includes<TABLE>,<TR>,<TD>,<FORM>) Remove text label policy (text label includes<A>,<SECTION>,<ARTICLE>,<SPAN>,<STRONG>,<EM>,<FONT>,<I>,<H1>,<H2>,<H3>,<H4>,<H5>,<H6>,<H7>,<BR>,<BLOCKQUOTE>) Setting a replacement filter tag policy (replacement tag includes<TBODY>,<DIV>) And a replacement filter label is regular (< >)<(.*)section(.*)>/g)) replace the label with<p>And (4) a label. And removing and filtering the label of the analyzed rich text character string according to a removing style label strategy, and replacing the label which is in line with the rule in the rich text character string according to the replacement filtering label regular pattern. And restoring the escape character. The above work is performed twice to be able to completely guarantee the removal of redundant tags and the repetition of useless tags.
The implementation process of the step can be summarized as follows:
step 1021: the object node in the parsed object node data is traversed and the style attribute of the object node is removed using a removeAttr () method. And (3) clearing the style attribute and monitoring by using a javascript script, and if the style attribute is < TABLE >, < TR >, < TD >, < FORM > tags, only clearing the styles of the font type, the size and the color, so that the condition of style disorder of the TABLE and the article of the TABLE type is prevented.
Step 1022: and traversing and analyzing object nodes in the object node data, and removing the tags which accord with preset removal style/text tag strategy rules in the object nodes by using a remove method of a DOM structure. Among them, the removal style tags may include < a >, < SECTION >, < arc >, < SPAN >, < STRONG >, < EM >, < FONT >, < I >, < H1>, < H2>, < H3>, < H4>, < H5>, < H6>, < H7>, < BR >, < block kquat > tags. Removing text labels includes < br >, < p > < br > </p >, < p style = "text-index: 2em;" > ". And judging whether the text contains elements in the removed text label by using an indexOf () method of the innerHTML attribute, and removing if the text contains the elements in the removed text label so as to ensure that some repeated or useless labels are removed.
Step 1023: and traversing and analyzing object nodes in the object node data, and performing label replacement processing on the labels in the object nodes, which accord with preset replacement filtering label policy rules, by using a rename method of a DOM structure. Wherein replacing the filter label comprises:<TBODY>,<DIV>. Obtaining the tag name of each element by using the tagName attribute of the DOM in the HTML, if the package isWith the element in the replacement filter label, then a matching regularization (e.g., section label regularization<(.*)section(.*)>/g)) perform the replacement<P>And (4) a label.
Step 1024: and performing escape character reduction on the character strings which accord with the escape rules in the object nodes according to a preset escape character reduction list. The reduction process is shown in FIG. 3.
Step 103: and performing centering processing on the picture contained in the rich text. Specifically, all img tags in the rich text are determined using the querySelector () method. Based on the img tag, a setStyle method is used to add a centering attribute to all pictures in the rich text.
Step 104: and setting an automatic typesetting style menu of the initialized rich text editor by adopting a JavaScript script. In the actual operation process, the rich text editor automatic typesetting style menu can be set through the JavaScript script, and the added corresponding attributes (characters, word size, color, bold, italics, line height, indentation related attributes) are selected. Each attribute component corresponds to an attribute icon and an attribute drop-down box. Each attribute box has a default attribute value, and a user can edit the attribute drop-down boxes according to own requirements. After editing is completed, the setStyle method is executed to add the attributes.
Step 105: and automatically typesetting the processed rich text based on the automatic typesetting style menu, and rendering the style. The processed rich text includes: and performing label filtering and format removing processing on the rich text and the rich text subjected to picture centering processing. In the actual operation process, the user can select according to the related attributes of font, font size, color, bold, italics, line height and indentation of the style library, change the global style of the rich text while automatically typesetting, for example, if the style selection is added after filtering and label replacement, change the font size and the like. The implementation process of the automatic typesetting of the rich text editor is shown in fig. 2, and rich text style rendering is realized at the same time of the automatic typesetting strategy.
After the steps are completed, all the object node data are recombined into character strings for representing the rich text, and the automatic typesetting of the rich text is completed.
In order to further improve the security of the rich text character string, the automatic typesetting method based on the rich text editor provided by the invention can further comprise the following steps:
and filtering the node data of the analysis object by adopting a preset cross-site script blacklist keyword list so as to delete the character strings conforming to the cross-site script blacklist keywords. Specifically, object nodes in the object node data are traversed and analyzed, and character strings in the object nodes, which accord with a preset cross-site script blacklist keyword list, are filtered by adopting a place function. The cross-site scripting attack types comprise: sql injection (keywords: insert, delete, update, select), javascript insecure script (keywords: script, alert), page embedding (keywords: iframe).
Based on the above description, the present invention has advantages over the prior art and modes in that:
1. the processing of special style labels in the rich text editor is increased, and the style disorder probability is reduced.
2. Multiple tag filtering is added, such as replacing < DIV > tags with < P > tags altogether, reducing overall style clutter due to < DIV > tags nesting too deeply.
3. The layout of the rich text picture centering style is increased. Compared with typesetting without processing, the visual effect of the displayed content is improved, and the operation of centering the picture by manual operation is avoided.
4. The filtering of cross-site script blacklist keywords is increased, and the security of rich texts is enhanced.
5. And the verification of the comparison library module is increased. And comparing and checking the accuracy of the rich text through a series of regular judgments, and removing error labels and repeated useless labels which do not accord with the grammar of the rich text.
6. The choice of the style library module is increased. And realizing rich text style rendering at the same time of the automatic typesetting strategy.
Corresponding to the automatic typesetting method based on the rich text editor, the invention also provides two implementation systems, which are specifically as follows:
as shown in fig. 4, an automatic typesetting system based on a rich text editor includes: an initialization operation module 400, a rich text acquisition module 401, a label-format processing module 402, a centering processing module 403, an automatic layout style menu setting module 404, and a layout-rendering module 405.
The initialization operation module 400 is used to perform initialization operations on the rich text editor.
The rich text obtaining module 401 is configured to obtain a rich text, and analyze the rich text to obtain analysis object node data.
The label-format processing module 402 is configured to perform label filtering and format removal processing on the node data of the parsing object.
The centering processing module 403 is configured to perform centering processing on the picture included in the rich text.
The automatic typesetting style menu setting module 404 is configured to set an automatic typesetting style menu of the initialized rich text editor by using a JavaScript script.
The layout-rendering module 405 is configured to automatically layout the processed rich text based on the automatic layout style menu, and perform style rendering. The processed rich text includes: and performing label filtering and format removing processing on the rich text and the rich text subjected to picture centering processing.
Another automatic typesetting system based on a rich text editor comprises: a processor and a memory.
The memory has stored therein a software program for the computer. The computer software program is used for executing the automatic typesetting method based on the rich text editor provided above.
The processor is connected with the memory. The processor is used for calling and executing the computer software program.
In summary, the automatic typesetting method and system based on the rich text editor provided by the invention are mainly used for perfecting the automatic typesetting function of the rich text editor. The method can improve the automatic typesetting accuracy of the rich text, reduce the editing error of the rich text, enhance the safety of the rich text and enrich the editing style of the rich text.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.
Claims (10)
1. An automatic typesetting method based on a rich text editor is characterized by comprising the following steps:
initializing the rich text editor;
acquiring a rich text, and analyzing the rich text to obtain node data of an analysis object;
performing label filtering and format removing processing on the node data of the analysis object;
centering the pictures contained in the rich text;
adopting a JavaScript script to set an automatic typesetting style menu of the initialized rich text editor;
automatically typesetting the processed rich text based on the automatic typesetting style menu, and performing style rendering; the processed rich text comprises: and performing label filtering and format removing processing on the rich text and the rich text subjected to picture centering processing.
2. The method of claim 1, further comprising:
and filtering the node data of the analysis object by adopting a preset cross-site script blacklist keyword list so as to delete the character strings conforming to the cross-site script blacklist keywords.
3. The automatic typesetting method based on rich text editor of claim 2, wherein the parsing object node data is filtered by using a preset cross-site script blacklist keyword list to delete character strings conforming to the cross-site script blacklist keywords, comprising:
and traversing the object nodes in the analysis object node data, and filtering the character strings in the object nodes, which accord with a preset cross-site script blacklist keyword list, by adopting a replace function.
4. The method for automatic typesetting based on rich text editor of claim 1, wherein the initializing operation of the rich text editor specifically comprises:
and initializing an operation menu of the rich text editor by adopting a JavaScript script, and binding a processing event for monitoring user operation through addListener.
5. The method according to claim 4, wherein the obtaining of the rich text and the parsing of the rich text to obtain the parsed object node data specifically comprises:
acquiring character strings in the rich text, and analyzing the character strings by adopting the initialized rich text editor to obtain node data of an analysis object; the parsing object node data includes: tag data and tag content.
6. The method according to claim 5, wherein the obtaining of the character strings in the rich text and the analyzing of the character strings by the initialized rich text editor to obtain node data of the analyzed object specifically include:
generating a trigger event when a text selection in a current initialization rich text editor is changed;
and acquiring rich text change based on the trigger event, and analyzing the character string to obtain node data of an analysis object.
7. The automatic typesetting method based on the rich text editor as claimed in claim 6, wherein the label filtering and format removing processing is performed on the parsed object node data, specifically comprising:
traversing object nodes in the data of the parsed object nodes, and removing style attributes of the object nodes by using a removeAttr () method;
traversing object nodes in the analyzed object node data, and removing tags which accord with preset removal style/text tag strategy rules in the object nodes by using a remove method of a DOM structure;
traversing object nodes in the analyzed object node data, and performing label replacement processing on labels in the object nodes, which accord with preset replacement filtering label strategy rules, by using a rename method of a DOM structure;
and performing escape character reduction on the character strings which accord with the escape rules in the object nodes according to a preset escape character reduction list.
8. The method according to claim 6, wherein the centering of the picture included in the rich text specifically comprises:
determining all img tags in the rich text using a querySector () method;
a setStyle method is used to add a centering attribute to all pictures in the rich text based on the img tags.
9. An automatic composition system based on a rich text editor, comprising:
the initialization operation module is used for carrying out initialization operation on the rich text editor;
the rich text acquisition module is used for acquiring a rich text and analyzing the rich text to obtain analysis object node data;
the label-format processing module is used for carrying out label filtering and format removing processing on the node data of the analysis object;
the centering processing module is used for centering the pictures contained in the rich text;
the automatic typesetting style menu setting module is used for setting an automatic typesetting style menu of the initialized rich text editor by adopting a JavaScript script;
the typesetting-rendering module is used for automatically typesetting the processed rich text based on the automatic typesetting style menu and rendering the style; the processed rich text comprises: and performing label filtering and format removing processing on the rich text and the rich text subjected to picture centering processing.
10. An automatic composition system based on a rich text editor, comprising: a processor and a memory;
the memory has stored therein a software program for a computer; the computer software program for executing the rich text editor based automatic composition method according to any of claims 1-8;
the processor is connected with the memory; the processor is used for calling and executing the computer software program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210034183.3A CN114048708A (en) | 2022-01-13 | 2022-01-13 | Automatic typesetting method and system based on rich text editor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210034183.3A CN114048708A (en) | 2022-01-13 | 2022-01-13 | Automatic typesetting method and system based on rich text editor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114048708A true CN114048708A (en) | 2022-02-15 |
Family
ID=80196390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210034183.3A Pending CN114048708A (en) | 2022-01-13 | 2022-01-13 | Automatic typesetting method and system based on rich text editor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114048708A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115981588A (en) * | 2023-03-16 | 2023-04-18 | 中国邮电器材集团有限公司 | Multi-terminal data display method, equipment and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915328A (en) * | 2012-09-04 | 2013-02-06 | 新浪网技术(中国)有限公司 | Method for editing rich text and rich text editor |
CN105183706A (en) * | 2014-05-27 | 2015-12-23 | 腾讯科技(北京)有限公司 | Method and device for processing rich text |
CN107846413A (en) * | 2017-11-29 | 2018-03-27 | 济南浪潮高新科技投资发展有限公司 | A kind of method and system for defending cross-site scripting attack |
CN112883688A (en) * | 2019-11-29 | 2021-06-01 | 中国电信股份有限公司 | Rich text filtering method, rich text filtering device and computer readable storage medium |
CN112966265A (en) * | 2021-03-01 | 2021-06-15 | 京东数字科技控股股份有限公司 | Rich text security processing method and device, electronic equipment and storage medium |
CN113297502A (en) * | 2021-07-23 | 2021-08-24 | 浙江新华移动传媒股份有限公司 | Rich text monitoring and filtering method and device |
CN113435178A (en) * | 2021-06-17 | 2021-09-24 | 竹间智能科技(上海)有限公司 | Document analysis method and device |
CN113723063A (en) * | 2021-09-02 | 2021-11-30 | 四川启睿克科技有限公司 | Method for converting RTF (real time function) into HTML (hypertext markup language) and realizing effect on PDF (Portable document Format) file |
-
2022
- 2022-01-13 CN CN202210034183.3A patent/CN114048708A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915328A (en) * | 2012-09-04 | 2013-02-06 | 新浪网技术(中国)有限公司 | Method for editing rich text and rich text editor |
CN105183706A (en) * | 2014-05-27 | 2015-12-23 | 腾讯科技(北京)有限公司 | Method and device for processing rich text |
CN107846413A (en) * | 2017-11-29 | 2018-03-27 | 济南浪潮高新科技投资发展有限公司 | A kind of method and system for defending cross-site scripting attack |
CN112883688A (en) * | 2019-11-29 | 2021-06-01 | 中国电信股份有限公司 | Rich text filtering method, rich text filtering device and computer readable storage medium |
CN112966265A (en) * | 2021-03-01 | 2021-06-15 | 京东数字科技控股股份有限公司 | Rich text security processing method and device, electronic equipment and storage medium |
CN113435178A (en) * | 2021-06-17 | 2021-09-24 | 竹间智能科技(上海)有限公司 | Document analysis method and device |
CN113297502A (en) * | 2021-07-23 | 2021-08-24 | 浙江新华移动传媒股份有限公司 | Rich text monitoring and filtering method and device |
CN113723063A (en) * | 2021-09-02 | 2021-11-30 | 四川启睿克科技有限公司 | Method for converting RTF (real time function) into HTML (hypertext markup language) and realizing effect on PDF (Portable document Format) file |
Non-Patent Citations (1)
Title |
---|
韩可彧: "基于Django的XSS防御研究与实现", 《电子设计工程》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115981588A (en) * | 2023-03-16 | 2023-04-18 | 中国邮电器材集团有限公司 | Multi-terminal data display method, equipment and system |
CN115981588B (en) * | 2023-03-16 | 2023-09-26 | 中国邮电器材集团有限公司 | Multi-terminal data display method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6347323B1 (en) | Robust modification of persistent objects while preserving formatting and other attributes | |
CN108415702B (en) | Dynamic rendering method and device for application interface of mobile terminal | |
US20080244740A1 (en) | Browser-independent editing of content | |
US20130145255A1 (en) | Systems and methods for filtering web page contents | |
CN106294493B (en) | Method and device for realizing document format conversion | |
CN111241793B (en) | Method, system and medium for resolving rich text editor content to render to native client | |
CN112632358B (en) | Resource link obtaining method and device, electronic equipment and storage medium | |
CN114048708A (en) | Automatic typesetting method and system based on rich text editor | |
WO2012012949A1 (en) | Visual separator detection in web pages by using code analysis | |
CN110377371B (en) | Style sheet system management method based on Web tag | |
US7461337B2 (en) | Exception markup documents | |
CN113656119A (en) | Method and system for backtracking user operation through dom node | |
CN109558548B (en) | Method for eliminating CSS style redundancy and related product | |
KR102533070B1 (en) | Method for prioritizing resources based on dependency of web resources, recording medium and device for performing the method | |
JP2000090120A (en) | Method and device for document processing and machine readable medium | |
CN113076501A (en) | Page processing method, storage medium and equipment | |
CN115659087B (en) | Page rendering method, equipment and storage medium | |
CN110727458A (en) | Method and device for switching page template settings through background management | |
CN113392354B (en) | Webpage text analysis method, system, medium and electronic equipment | |
CN115437930A (en) | Identification method of webpage application fingerprint information and related equipment | |
CN115169292A (en) | Document processing method and device, electronic equipment and computer readable storage medium | |
CN108228179A (en) | The international processing method of the page, device, computer and storage medium | |
CN113656739A (en) | Website data storage method and device | |
CN114637505A (en) | Page content extraction method and device | |
CN112861482A (en) | File online editing method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220215 |
|
RJ01 | Rejection of invention patent application after publication |