mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-12-06 16:22:15 +00:00
feat(pdf): extract the text as Markdown
This commit is contained in:
@@ -13,6 +13,7 @@ post {
|
||||
body:multipart-form {
|
||||
files: @file(../test/integration/testdata/pages_3.pdf)
|
||||
~pages: 1-2
|
||||
~format: markdown
|
||||
~invisible: true
|
||||
~artifacts: true
|
||||
~annotations: true
|
||||
|
||||
2
go.mod
2
go.mod
@@ -11,7 +11,7 @@ require (
|
||||
github.com/dlclark/regexp2/v2 v2.13.0
|
||||
github.com/gomarkdown/markdown v0.0.0-20261109103609-13f93121d67a
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/gotenberg/litho v0.0.14
|
||||
github.com/gotenberg/litho v0.0.15
|
||||
github.com/hashicorp/go-retryablehttp v0.7.8
|
||||
github.com/labstack/echo/v5 v5.4.5
|
||||
github.com/labstack/gommon v0.5.0
|
||||
|
||||
4
go.sum
4
go.sum
@@ -118,8 +118,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8=
|
||||
github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0=
|
||||
github.com/gotenberg/litho v0.0.14 h1:aimDp1l7UTkmhkg0/X2h5dnw0xmba0U6on1F0tJwp1I=
|
||||
github.com/gotenberg/litho v0.0.14/go.mod h1:BYtOYpLnI02JzPt4FbeozPgTz1OrCPyyao5kAoEpn4Y=
|
||||
github.com/gotenberg/litho v0.0.15 h1:aI7tWb7t7zogO0uz28t1ZS2d/PNLz/JiwBpNdfREDXA=
|
||||
github.com/gotenberg/litho v0.0.15/go.mod h1:BYtOYpLnI02JzPt4FbeozPgTz1OrCPyyao5kAoEpn4Y=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.33.0 h1:5T5Ns3kMpWr+z3s5ZA0e7ljVyWNVNxK76sHPAxi5D1k=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.33.0/go.mod h1:oWNYw09cH8wl8fFgC5hKlBLxR4XfKy2KQpP8MJjeCcc=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
|
||||
|
||||
@@ -814,7 +814,19 @@ func markdownToHtml(ctx *api.Context, inputPath string, markdownPaths []string)
|
||||
return fmt.Sprintf("file://%s", inputPath), nil
|
||||
}
|
||||
|
||||
// convertUrl prints url to PDF with Chromium and runs stages on the result.
|
||||
//
|
||||
// When the stages extract the text as Markdown, Chromium prints a tagged PDF
|
||||
// whatever nativeTaggedPdf says: Markdown reads its headings, lists and tables
|
||||
// from the structure tree, and an untagged print gives it only the layout,
|
||||
// where Chromium sets each styled run of text apart and draws list bullets as
|
||||
// shapes.
|
||||
func convertUrl(ctx *api.Context, chromium Api, processor *pdf.Processor, url string, options PdfOptions, stages pdf.Stages, files map[string]string) error {
|
||||
if stages.ExtractsMarkdown() && !options.GenerateTaggedPdf {
|
||||
ctx.Log().DebugContext(ctx, "Markdown extraction requested, enabling tagged PDF because Markdown reads the structure tree")
|
||||
options.GenerateTaggedPdf = true
|
||||
}
|
||||
|
||||
outputPath := ctx.GeneratePath(".pdf")
|
||||
// See https://github.com/gotenberg/gotenberg/issues/1130.
|
||||
filename := ctx.OutputFilename(outputPath)
|
||||
|
||||
@@ -20,7 +20,8 @@ import (
|
||||
const unattributableFailureMessage = "LibreOffice failed to convert the document '%s'. This is usually a resource issue: increase the container's memory and CPU, or reduce the document's size. The request is valid and may be retried."
|
||||
|
||||
// convertRoute returns an [api.Route] which can convert LibreOffice documents
|
||||
// to PDF.
|
||||
// to PDF. When the stages extract the text as Markdown, LibreOffice exports a
|
||||
// tagged PDF whatever nativeTaggedPdf says.
|
||||
func convertRoute(libreOffice libreofficeapi.Converter, processor *pdf.Processor) api.Route {
|
||||
return api.Route{
|
||||
Method: http.MethodPost,
|
||||
@@ -163,6 +164,14 @@ func convertRoute(libreOffice libreofficeapi.Converter, processor *pdf.Processor
|
||||
)
|
||||
}
|
||||
|
||||
// Markdown reads its headings, lists and tables from the structure
|
||||
// tree, which LibreOffice writes into a tagged PDF only: without
|
||||
// it, Markdown has the layout alone to read.
|
||||
if stages.ExtractsMarkdown() && !options.GenerateTaggedPdf {
|
||||
ctx.Log().DebugContext(ctx, "Markdown extraction requested, enabling tagged PDF because Markdown reads the structure tree")
|
||||
options.GenerateTaggedPdf = true
|
||||
}
|
||||
|
||||
outputPaths := make([]string, len(inputPaths))
|
||||
for i, inputPath := range inputPaths {
|
||||
// document.docx -> document.docx.pdf, which names the output,
|
||||
|
||||
@@ -690,22 +690,43 @@ func (*extractAttachmentsStage) validate() error { return nil }
|
||||
|
||||
func (*extractAttachmentsStage) files() []string { return nil }
|
||||
|
||||
// extractTextStage writes the text each final document shows as a .txt file
|
||||
// next to the outputs, its pages joined by a form feed. Pages lists the pages
|
||||
// to read, every page when empty. Invisible adds the text a searchable scan
|
||||
// carries under its image, Artifacts the headers, footers and page numbers,
|
||||
// and Annotations the text annotations show. It comes last, and writes no
|
||||
// document.
|
||||
// extractTextStage writes the text each final document shows next to the
|
||||
// outputs. Format "text", the default, writes a .txt file, its pages joined by
|
||||
// a form feed. Format "markdown" writes a .md file whose structure, headings,
|
||||
// lists, tables and links, comes from the PDF's structure tree when it is
|
||||
// tagged and from its layout otherwise; the Chromium and LibreOffice routes
|
||||
// print a tagged PDF for it ([Stages.ExtractsMarkdown]). Pages lists the pages to read, every
|
||||
// page when empty; Markdown reads them in document order. Invisible adds the
|
||||
// text a searchable scan carries under its image, Artifacts the headers,
|
||||
// footers and page numbers, and Annotations the text annotations show. It
|
||||
// comes last, and writes no document.
|
||||
type extractTextStage struct {
|
||||
Pages string `json:"pages"`
|
||||
Format string `json:"format"`
|
||||
Invisible bool `json:"invisible"`
|
||||
Artifacts bool `json:"artifacts"`
|
||||
Annotations bool `json:"annotations"`
|
||||
}
|
||||
|
||||
// The formats extract-text writes.
|
||||
const (
|
||||
textFormatText = "text"
|
||||
textFormatMarkdown = "markdown"
|
||||
)
|
||||
|
||||
func (*extractTextStage) op() string { return "extract-text" }
|
||||
|
||||
func (*extractTextStage) validate() error { return nil }
|
||||
func (s *extractTextStage) validate() error {
|
||||
switch s.Format {
|
||||
case "", textFormatText, textFormatMarkdown:
|
||||
return nil
|
||||
}
|
||||
|
||||
return fmt.Errorf(`"format" must be "text" or "markdown", got %q`, s.Format)
|
||||
}
|
||||
|
||||
// markdown reports whether s writes Markdown.
|
||||
func (s *extractTextStage) markdown() bool { return s.Format == textFormatMarkdown }
|
||||
|
||||
func (*extractTextStage) files() []string { return nil }
|
||||
|
||||
|
||||
@@ -181,6 +181,19 @@ func (stages Stages) Files() []string {
|
||||
return names
|
||||
}
|
||||
|
||||
// ExtractsMarkdown reports whether a stage extracts the text as Markdown.
|
||||
// Markdown reads its headings, lists and tables from a tagged PDF's structure
|
||||
// tree, so a route that prints the PDF prints it tagged when this holds.
|
||||
func (stages Stages) ExtractsMarkdown() bool {
|
||||
for _, s := range stages {
|
||||
if t, ok := s.(*extractTextStage); ok && t.markdown() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// validateOrder checks the constraints that span stages. litho refuses an edit
|
||||
// after a remediation, the output of a signature must not be rewritten, and
|
||||
// encryption applies to the final write only.
|
||||
|
||||
@@ -91,6 +91,8 @@ func TestParseStages(t *testing.T) {
|
||||
{name: "extract-attachments not last", raw: `[{"op":"extract-attachments"},{"op":"rotate","angle":90}]`, wantErr: `stage 0: "extract-attachments" must be the last stage`},
|
||||
{name: "extract-attachments before render", raw: `[{"op":"extract-attachments"},{"op":"render"}]`, wantErr: `stage 0: "extract-attachments" must be the last stage`},
|
||||
{name: "extract-text not last", raw: `[{"op":"extract-text"},{"op":"extract-attachments"}]`, wantErr: `stage 0: "extract-text" must be the last stage`},
|
||||
{name: "extract-text as markdown", raw: `[{"op":"extract-text","format":"markdown"}]`, wantOps: []string{"extract-text"}},
|
||||
{name: "extract-text in an unknown format", raw: `[{"op":"extract-text","format":"html"}]`, wantErr: `stage 0: extract-text: "format" must be "text" or "markdown", got "html"`},
|
||||
{name: "extract-text after sign", raw: `[{"op":"sign","certificate":"c.p12"},{"op":"extract-text","pages":"1","artifacts":true}]`, wantOps: []string{"sign", "extract-text"}},
|
||||
{name: "extract-attachments after sign", raw: `[{"op":"sign","certificate":"c.p12"},{"op":"extract-attachments"}]`, wantOps: []string{"sign", "extract-attachments"}},
|
||||
{name: "extract-attachments after remediate and encrypt", raw: `[{"op":"remediate","profile":"PDF/UA-1"},{"op":"encrypt","userPassword":"u"},{"op":"extract-attachments","name":"factur-x.xml"}]`, wantOps: []string{"remediate", "encrypt", "extract-attachments"}},
|
||||
@@ -403,3 +405,19 @@ func TestSplitStageFromFormDropSignatures(t *testing.T) {
|
||||
t.Fatalf("stage = %+v, want every 1 and dropSignatures", s)
|
||||
}
|
||||
}
|
||||
|
||||
func TestStagesExtractsMarkdown(t *testing.T) {
|
||||
for _, tc := range []struct {
|
||||
raw string
|
||||
want bool
|
||||
}{
|
||||
{raw: `[]`, want: false},
|
||||
{raw: `[{"op":"extract-text"}]`, want: false},
|
||||
{raw: `[{"op":"extract-text","format":"text"}]`, want: false},
|
||||
{raw: `[{"op":"rotate","angle":90},{"op":"extract-text","format":"markdown"}]`, want: true},
|
||||
} {
|
||||
if got := mustStages(t, tc.raw).ExtractsMarkdown(); got != tc.want {
|
||||
t.Errorf("ExtractsMarkdown(%s) = %t, want %t", tc.raw, got, tc.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package pdf
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
@@ -18,8 +19,8 @@ import (
|
||||
const pageSeparator = "\f"
|
||||
|
||||
// extractText writes the text of the pages s selects of each document, and
|
||||
// returns the paths of the .txt files, one per document: invoice.pdf gives
|
||||
// invoice.txt.
|
||||
// returns the paths of the files, one per document: invoice.pdf gives
|
||||
// invoice.txt, or invoice.md for Markdown.
|
||||
func (p *Processor) extractText(ctx *api.Context, s *extractTextStage, docs []document, password string) ([]string, error) {
|
||||
extracted := make([]extractedFile, len(docs))
|
||||
|
||||
@@ -72,33 +73,66 @@ func (p *Processor) extractTextOne(ctx *api.Context, s *extractTextStage, d docu
|
||||
return extractedFile{}, err
|
||||
}
|
||||
|
||||
span.SetAttributes(attribute.Int("gotenberg.pdf.page.count", len(pages)))
|
||||
span.SetAttributes(
|
||||
attribute.Int("gotenberg.pdf.page.count", len(pages)),
|
||||
attribute.String("gotenberg.pdf.text.format", s.formatName()),
|
||||
)
|
||||
|
||||
opts := s.options()
|
||||
texts := make([]string, len(pages))
|
||||
|
||||
for i, page := range pages {
|
||||
texts[i], err = r.ExtractText(spanCtx, page, opts...)
|
||||
// A scanned page holds an image, not text, and Gotenberg recognizes
|
||||
// none: it reads as empty rather than failing the document.
|
||||
if errors.Is(err, litho.ErrRequiresOCR) {
|
||||
texts[i], err = "", nil
|
||||
}
|
||||
var text, ext string
|
||||
if s.markdown() {
|
||||
ext = ".md"
|
||||
text, err = r.ExtractMarkdown(spanCtx, pages, s.options()...)
|
||||
if err != nil {
|
||||
return extractedFile{}, inputError(fmt.Sprintf("extract the text of page %d", page), err)
|
||||
return extractedFile{}, inputError("extract the text as Markdown", err)
|
||||
}
|
||||
} else {
|
||||
ext = ".txt"
|
||||
text, err = plainText(spanCtx, r, pages, s.options())
|
||||
if err != nil {
|
||||
return extractedFile{}, err
|
||||
}
|
||||
}
|
||||
|
||||
path := ctx.GeneratePath(".txt")
|
||||
path := ctx.GeneratePath(ext)
|
||||
|
||||
err = os.WriteFile(path, []byte(strings.Join(texts, pageSeparator)), 0o600)
|
||||
err = os.WriteFile(path, []byte(text), 0o600)
|
||||
if err != nil {
|
||||
return extractedFile{}, fmt.Errorf("write text: %w", err)
|
||||
}
|
||||
|
||||
base := strings.TrimSuffix(d.filename, filepath.Ext(d.filename))
|
||||
|
||||
return extractedFile{path: path, name: base + ".txt"}, nil
|
||||
return extractedFile{path: path, name: base + ext}, nil
|
||||
}
|
||||
|
||||
// plainText returns the text of pages, in the order given, joined by
|
||||
// [pageSeparator].
|
||||
func plainText(ctx context.Context, r *litho.Reader, pages []int, opts []litho.ExtractTextOption) (string, error) {
|
||||
texts := make([]string, len(pages))
|
||||
|
||||
for i, page := range pages {
|
||||
var err error
|
||||
texts[i], err = r.ExtractText(ctx, page, opts...)
|
||||
// A scanned page holds an image, not text, and Gotenberg recognizes
|
||||
// none: it reads as empty rather than failing the document.
|
||||
if errors.Is(err, litho.ErrRequiresOCR) {
|
||||
texts[i], err = "", nil
|
||||
}
|
||||
if err != nil {
|
||||
return "", inputError(fmt.Sprintf("extract the text of page %d", page), err)
|
||||
}
|
||||
}
|
||||
|
||||
return strings.Join(texts, pageSeparator), nil
|
||||
}
|
||||
|
||||
// formatName returns the format s writes, its default named.
|
||||
func (s *extractTextStage) formatName() string {
|
||||
if s.Format == "" {
|
||||
return textFormatText
|
||||
}
|
||||
|
||||
return s.Format
|
||||
}
|
||||
|
||||
// options returns the litho options of the text s reads besides what the page
|
||||
|
||||
@@ -52,6 +52,24 @@ func TestExtractText(t *testing.T) {
|
||||
fixtures: []string{"pages_3.pdf"},
|
||||
want: map[string]string{"pages_3.txt": "Page 2"},
|
||||
},
|
||||
{
|
||||
name: "markdown, every page",
|
||||
stages: `[{"op":"extract-text","format":"markdown"}]`,
|
||||
fixtures: []string{"pages_3.pdf"},
|
||||
want: map[string]string{"pages_3.md": "Page 1\n\nPage 2\n\nPage 3\n"},
|
||||
},
|
||||
{
|
||||
name: "markdown, selected pages in document order",
|
||||
stages: `[{"op":"extract-text","format":"markdown","pages":"3,1"}]`,
|
||||
fixtures: []string{"pages_3.pdf"},
|
||||
want: map[string]string{"pages_3.md": "Page 1\n\nPage 3\n"},
|
||||
},
|
||||
{
|
||||
name: "markdown, a scanned page reads as empty",
|
||||
stages: `[{"op":"extract-text","format":"markdown"}]`,
|
||||
fixtures: []string{"scanned.pdf"},
|
||||
want: map[string]string{"scanned.md": ""},
|
||||
},
|
||||
{
|
||||
name: "a page past the end",
|
||||
stages: `[{"op":"extract-text","pages":"4"}]`,
|
||||
|
||||
@@ -1477,6 +1477,37 @@ Feature: /forms/chromium/convert/html
|
||||
| *_2.png |
|
||||
| *_3.png |
|
||||
|
||||
# Markdown reads its headings, lists and tables from the structure tree:
|
||||
# Gotenberg prints a tagged PDF for it, nativeTaggedPdf left unset.
|
||||
@pdf-extract-text
|
||||
Scenario: POST /forms/chromium/convert/html (Markdown)
|
||||
Given I have a default Gotenberg container
|
||||
When I make a "POST" request to Gotenberg at the "/forms/chromium/convert/html" endpoint with the following form data and header(s):
|
||||
| files | testdata/structure-html/index.html | file |
|
||||
| stages | [{"op":"extract-text","format":"markdown"}] | field |
|
||||
| Gotenberg-Output-Filename | foo | header |
|
||||
Then the response status code should be 200
|
||||
Then the response header "Content-Type" should be "application/zip"
|
||||
Then there should be 1 PDF(s) in the response
|
||||
Then there should be the following file(s) in the response:
|
||||
| foo.pdf |
|
||||
| foo.md |
|
||||
Then the "foo.pdf" PDF should be tagged
|
||||
Then the "foo.md" file should match string:
|
||||
"""
|
||||
# Report
|
||||
|
||||
A **bold** word and a [link](https://gotenberg.dev/docs).
|
||||
|
||||
- One
|
||||
- Two
|
||||
|
||||
| Name | Value |
|
||||
| --- | --- |
|
||||
| a | 1 |
|
||||
|
||||
"""
|
||||
|
||||
@pdf-remediate
|
||||
Scenario: POST /forms/chromium/convert/html (PDF/A-1b)
|
||||
Given I have a default Gotenberg container
|
||||
|
||||
@@ -489,6 +489,27 @@ Feature: /forms/libreoffice/convert
|
||||
Then the response header "Content-Type" should be "application/pdf"
|
||||
Then there should be 1 PDF(s) in the response
|
||||
|
||||
# Markdown reads its headings, lists and tables from the structure tree:
|
||||
# Gotenberg exports a tagged PDF for it, nativeTaggedPdf left unset.
|
||||
@pdf-extract-text
|
||||
Scenario: POST /forms/libreoffice/convert (Markdown)
|
||||
Given I have a default Gotenberg container
|
||||
When I make a "POST" request to Gotenberg at the "/forms/libreoffice/convert" endpoint with the following form data and header(s):
|
||||
| files | testdata/page_1.docx | file |
|
||||
| stages | [{"op":"extract-text","format":"markdown"}] | field |
|
||||
Then the response status code should be 200
|
||||
Then the response header "Content-Type" should be "application/zip"
|
||||
Then there should be 1 PDF(s) in the response
|
||||
Then there should be the following file(s) in the response:
|
||||
| page_1.docx.pdf |
|
||||
| page_1.docx.md |
|
||||
Then the "page_1.docx.pdf" PDF should be tagged
|
||||
Then the "page_1.docx.md" file should match string:
|
||||
"""
|
||||
Page 1
|
||||
|
||||
"""
|
||||
|
||||
@pdf-merge
|
||||
Scenario: POST /forms/libreoffice/convert (Merge)
|
||||
Given I have a default Gotenberg container
|
||||
|
||||
@@ -80,6 +80,41 @@ Feature: /forms/pdf/extract-text
|
||||
Page 1
|
||||
"""
|
||||
|
||||
# Markdown reads the PDF's structure tree, or its layout when it has none:
|
||||
# pages_3.pdf is untagged, and each page holds a line of body text.
|
||||
Scenario: POST /forms/pdf/extract-text (Markdown)
|
||||
Given I have a default Gotenberg container
|
||||
When I make a "POST" request to Gotenberg at the "/forms/pdf/extract-text" endpoint with the following form data and header(s):
|
||||
| files | testdata/pages_3.pdf | file |
|
||||
| format | markdown | field |
|
||||
Then the response status code should be 200
|
||||
Then the response header "Content-Type" should contain "text/markdown"
|
||||
Then there should be 0 PDF(s) in the response
|
||||
Then there should be the following file(s) in the response:
|
||||
| pages_3.md |
|
||||
Then the "pages_3.md" file should match string:
|
||||
"""
|
||||
Page 1
|
||||
|
||||
Page 2
|
||||
|
||||
Page 3
|
||||
|
||||
"""
|
||||
# Markdown reads the pages in document order.
|
||||
When I make a "POST" request to Gotenberg at the "/forms/pdf/extract-text" endpoint with the following form data and header(s):
|
||||
| files | testdata/pages_3.pdf | file |
|
||||
| format | markdown | field |
|
||||
| pages | 3,1 | field |
|
||||
Then the response status code should be 200
|
||||
Then the "pages_3.md" file should match string:
|
||||
"""
|
||||
Page 1
|
||||
|
||||
Page 3
|
||||
|
||||
"""
|
||||
|
||||
# stamp-text marks its stamp as an artifact, which only artifacts reads.
|
||||
Scenario: POST /forms/pdf/pipe (Extract Text)
|
||||
Given I have a default Gotenberg container
|
||||
@@ -117,6 +152,14 @@ Feature: /forms/pdf/extract-text
|
||||
"""
|
||||
Invalid form data: form field 'annotations' is invalid (got 'yes', want true or false)
|
||||
"""
|
||||
When I make a "POST" request to Gotenberg at the "/forms/pdf/extract-text" endpoint with the following form data and header(s):
|
||||
| files | testdata/page_1.pdf | file |
|
||||
| format | html | field |
|
||||
Then the response status code should be 400
|
||||
Then the response body should contain string:
|
||||
"""
|
||||
"format" must be "text" or "markdown", got "html"
|
||||
"""
|
||||
When I make a "POST" request to Gotenberg at the "/forms/pdf/pipe" endpoint with the following form data and header(s):
|
||||
| files | testdata/pages_3.pdf | file |
|
||||
| stages | [{"op":"extract-text"},{"op":"rotate","angle":90}] | field |
|
||||
|
||||
28
test/integration/testdata/structure-html/index.html
vendored
Normal file
28
test/integration/testdata/structure-html/index.html
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Structure</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Report</h1>
|
||||
<p>
|
||||
A <strong>bold</strong> word and a
|
||||
<a href="https://gotenberg.dev/docs">link</a>.
|
||||
</p>
|
||||
<ul>
|
||||
<li>One</li>
|
||||
<li>Two</li>
|
||||
</ul>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Value</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>a</td>
|
||||
<td>1</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user