Skip to content

Commit

Permalink
chore(docs): escape HTML entities (#5687)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 8, 2022
1 parent abf312e commit d03de88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions dev/src/DocFx/Node/DocblockTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function getContent(): string
$content .= $longDescription;
}

$content = html_entity_decode($content);
$content = $this->replaceSeeTag($content);
$content = $this->replaceProtoRef($content);
$content = $this->stripSnippetTag($content);
Expand Down
6 changes: 3 additions & 3 deletions dev/tests/fixtures/docfx/V1.ProductSearchClient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ items:
search. It uses the following resource model:
- The API has a collection of <xref uid="\Google\Cloud\Vision\V1\ProductSet">ProductSet</xref> resources, named
`projects/&#42;/locations/&#42;/productSets/*`, which acts as a way to put different
`projects/*/locations/*/productSets/*`, which acts as a way to put different
products into groups to limit identification.
In parallel,
- The API has a collection of <xref uid="\Google\Cloud\Vision\V1\Product">Product</xref> resources, named
`projects/&#42;/locations/&#42;/products/*`
`projects/*/locations/*/products/*`
- Each <xref uid="\Google\Cloud\Vision\V1\Product">Product</xref> has a collection of <xref uid="\Google\Cloud\Vision\V1\ReferenceImage">ReferenceImage</xref> resources, named
`projects/&#42;/locations/&#42;/products/&#42;/referenceImages/*`
`projects/*/locations/*/products/*/referenceImages/*`
This class provides the ability to make remote calls to the backing service through method
calls that map to API methods. Sample code to get started:
Expand Down

0 comments on commit d03de88

Please sign in to comment.