docs(): escape < and > from plugin install command in doc template (#1791)

* Escape < and > from plugin install command in doc template

* Fix another issue with a missing closing code fence in the same plugin file
This commit is contained in:
Samuel Goodell 2017-07-13 12:41:53 -05:00 committed by GitHub
parent 238e2ab26c
commit b265b5bd0c
2 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,7 @@ docType: "<$ doc.docType $>"
<h2><a class="anchor" name="installation" href="#installation"></a>Installation</h2>
<ol class="installation">
<li>Install the Cordova and Ionic Native plugins:<br>
<pre><code class="nohighlight">$ <@ if prop.install @><$ prop.install $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
<pre><code class="nohighlight">$ <@ if prop.install @><$ prop.install | replace('<', '&lt;').replace('>', '&gt;') $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
$ npm install --save @ionic-native/<$ doc.npmId $>
</code></pre>
</li>

View File

@ -13,6 +13,7 @@ import { Injectable } from '@angular/core';
* constructor(private store: InAppPurchase2) { }
*
* ...
* ```
*
* * @advanced
*