3
0
mirror of https://github.com/danielsogl/awesome-cordova-plugins.git synced 2025-03-31 19:58:51 +08:00

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

* 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
scripts/docs/templates
src/@ionic-native/plugins/in-app-purchase-2

@ -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>

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