From b265b5bd0cd6ef6e67978b7e8769844dfb097c2f Mon Sep 17 00:00:00 2001 From: Samuel Goodell Date: Thu, 13 Jul 2017 12:41:53 -0500 Subject: [PATCH] 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 --- scripts/docs/templates/common.template.html | 2 +- src/@ionic-native/plugins/in-app-purchase-2/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index 0c2ad365c..475c43d10 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -186,7 +186,7 @@ docType: "<$ doc.docType $>"

Installation

  1. Install the Cordova and Ionic Native plugins:
    -
    $ <@ if prop.install @><$ prop.install $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
    +    
    $ <@ if prop.install @><$ prop.install | replace('<', '<').replace('>', '>') $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
     $ npm install --save @ionic-native/<$ doc.npmId $>
     
  2. diff --git a/src/@ionic-native/plugins/in-app-purchase-2/index.ts b/src/@ionic-native/plugins/in-app-purchase-2/index.ts index 6780e92e9..46436d642 100644 --- a/src/@ionic-native/plugins/in-app-purchase-2/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase-2/index.ts @@ -13,6 +13,7 @@ import { Injectable } from '@angular/core'; * constructor(private store: InAppPurchase2) { } * * ... + * ``` * * * @advanced *