Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

HTML (Hypertext Markup Language) content contrast device and method

A technology of content and comparison results, applied in the field of HTML content comparison devices, to achieve the effect of satisfying the needs of comparison

Active Publication Date: 2012-02-15
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to make up for the above deficiencies in the prior art, the present invention provides a method for comparing HTML content to solve the problem of performing difference analysis and comparison of HTML content while maintaining HTML tags to control the format of the text content in the tags

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • HTML (Hypertext Markup Language) content contrast device and method
  • HTML (Hypertext Markup Language) content contrast device and method
  • HTML (Hypertext Markup Language) content contrast device and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] Comparison content A1 "hello, world!" and comparison content A2 "hello, world ! ".

[0055] The text node analysis device 1 analyzes the comparison content A1 and the comparison content A2 respectively, and obtains the text node sequence A1 {"hello, world!"} and the text node sequence A2 {"hello,", "world", "!"}, And output the obtained text node sequence to the text node comparison device 2.

[0056] The text node comparison device 2 receives the text node sequence A1 and the text node sequence A2 output by the text node analysis device 1, and compares each node in the two text node sequences. Through comparison, it can be seen that the text content in the text node sequence A1 and the text node sequence A2 are exactly the same. The text node comparison device outputs the comparison result of the same text content of the two text node sequences to the difference data identification device.

[0057] The difference analysis device 3 compares the label in the comparison cont...

Embodiment 2

[0061] Comparison content B1 "HTML content comparison page left side" and comparison content B2 "HTML Display content Compare the right side of the page"

[0062] The text node analysis device 1 analyzes the comparison content B1 and the comparison content B2 respectively, and obtains the text node sequence B1 {"the left side of the HTML content comparison page"} and the text node sequence B2 {"HTML", "display content", "comparison The right side of the page"}, and output the obtained text node sequence to the text node comparison device 2.

[0063] The text node comparison device 2 receives the text node sequence B1 and the text node sequence B2 output by the text node analysis device 1, and compares each node in the two text node sequences. Through comparison, it can be seen that, compared with the text node in the text node sequence B1, the text in the text node sequence B2 is increased by "display", and "left" is changed to "right". The text node comparison device 2 modifies...

Embodiment 3

[0068] Comparison content C1 "ABC" and comparison content C2 "XYZ".

[0069] The text node analysis device 1 analyzes the comparison content 1 and the comparison content 2 respectively to obtain the text node sequence C1{"ABC"} and the text node sequence C2{"XYZ"}, and output the text node sequence to the text node comparison device 2 .

[0070] The text node comparison device 2 receives the text node sequence C1 and the text node sequence C2 output by the text node analysis device 1, and compares each node in the two text node sequences. Through comparison, it can be seen that, compared with the text node of the text node sequence C1, the text node sequence C2 has less "ABC" and more "XYZ". The text node comparison device 2 outputs the difference and difference attribute "ABC" text of the text node sequence C1 different from the text node sequence C2 and the text node sequence C2 difference and the difference attribute "XYZ" text increase respectively to Differential data identi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to HTML (Hypertext Markup Language) content contrast device and method. The device comprises a text node analysis device, a text node contrast device, a difference analysis device, a differential data identification device and a display device; wherein the text node analysis device is used for respectively analyzing two HTML contents via searching loop to obtain two text node sequences; the text node contrast device is used for contrasting the text nodes in the two text node sequences and obtaining a text node contrast result comprising a differential text and a corresponding differential type; the differential analysis device is used for contrasting the labels in the two HTML contents to obtain a label contrast result comprising a differential label and a corresponding differential type; the difference data identification device is used for identifying the differential text and the corresponding differential type in the text node contrast result and the differential label and the corresponding differential type in the label contrast result, and respectively performing differential identification to the differential texts and differential labels in the two HTML contents to conveniently watch the differences in the two HTML contents while displaying the contrast result; and the display device for displaying the contrast result.

Description

Technical field [0001] The present invention involves HTML content comparison technology, especially the HTML content comparison devices and methods. Background technique [0002] Hypertext Markup Language (HTML) is a standard language designed for web pages and other information design that can be seen in the web browser.HTML is used for structured information -such as title, paragraphs, and lists, etc., and can also be used to describe the appearance and semantics of the document to a certain extent.For example, HTML content <h2>Golf< / h2> middle <h2>< / h2> The browser is defined to display the o Golf ″ as a second -level title, HTML content boldface middle The browser is defined to display the o boldface ″ as a thick text, that is, ″ Boldface ″.It can be found that HTML uses a starting label " <x>"And an end label"< / x> "To control the display format of the content between the tags. The HTML tag is used to control the content display format in...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 潘海东梅春潘雪鹏
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products