diff --git a/lib/components/ApiInfo/api-info.html b/lib/components/ApiInfo/api-info.html
index 8083a884..1c8151f5 100644
--- a/lib/components/ApiInfo/api-info.html
+++ b/lib/components/ApiInfo/api-info.html
@@ -1,6 +1,6 @@
-
+
Contact:
diff --git a/lib/components/JsonSchema/json-schema-lazy.ts b/lib/components/JsonSchema/json-schema-lazy.ts
index af01a9dd..23de877e 100644
--- a/lib/components/JsonSchema/json-schema-lazy.ts
+++ b/lib/components/JsonSchema/json-schema-lazy.ts
@@ -32,6 +32,7 @@ export class JsonSchemaLazy implements OnDestroy, AfterViewInit {
}
_loadAfterSelf() {
+ // FIXME: get rid of DynamicComponentLoader as it is deprecated
return this.dcl.loadNextToLocation(JsonSchema, this.viewRef).then((compRef) => {
this.initComponent(compRef);
if (compRef.changeDetectorRef) {
diff --git a/lib/components/Method/method.html b/lib/components/Method/method.html
index 1fdb449f..adbf9284 100644
--- a/lib/components/Method/method.html
+++ b/lib/components/Method/method.html
@@ -7,7 +7,7 @@
{{tag}}
+ [innerHtml]="data.methodInfo.description | marked">
diff --git a/lib/components/MethodsList/methods-list.html b/lib/components/MethodsList/methods-list.html
index e8f134cf..c2217caa 100644
--- a/lib/components/MethodsList/methods-list.html
+++ b/lib/components/MethodsList/methods-list.html
@@ -2,7 +2,7 @@
diff --git a/lib/components/ParamsList/params-list.html b/lib/components/ParamsList/params-list.html
index b07078d5..f19d3414 100644
--- a/lib/components/ParamsList/params-list.html
+++ b/lib/components/ParamsList/params-list.html
@@ -20,7 +20,7 @@
{{enumItem.val | json}}
-
+
@@ -29,7 +29,7 @@
-
+
diff --git a/lib/components/Redoc/redoc.scss b/lib/components/Redoc/redoc.scss
index 048e4060..dd52ca75 100644
--- a/lib/components/Redoc/redoc.scss
+++ b/lib/components/Redoc/redoc.scss
@@ -160,7 +160,8 @@ footer {
pre {
font-family: Courier, monospace;
white-space: pre-wrap;
- background-color: rgba(38,50,56,0.04);
+ background-color: #263238;
+ color: white;
padding: 12px 14px 15px 14px;
overflow-x: auto;
line-height: normal;
diff --git a/lib/components/RequestSamples/request-samples.html b/lib/components/RequestSamples/request-samples.html
index cc9bbb45..53a9ef20 100644
--- a/lib/components/RequestSamples/request-samples.html
+++ b/lib/components/RequestSamples/request-samples.html
@@ -5,6 +5,6 @@
-
+
diff --git a/lib/components/ResponsesList/responses-list.html b/lib/components/ResponsesList/responses-list.html
index 39746643..6cdae6c0 100644
--- a/lib/components/ResponsesList/responses-list.html
+++ b/lib/components/ResponsesList/responses-list.html
@@ -9,7 +9,7 @@
-
+
diff --git a/lib/components/SchemaSample/schema-sample.html b/lib/components/SchemaSample/schema-sample.html
index bcdc23f0..8d0f2973 100644
--- a/lib/components/SchemaSample/schema-sample.html
+++ b/lib/components/SchemaSample/schema-sample.html
@@ -1,5 +1,5 @@
diff --git a/lib/utils/JsonFormatterPipe.ts b/lib/utils/JsonFormatterPipe.ts
index d1270d0d..a8f7470d 100644
--- a/lib/utils/JsonFormatterPipe.ts
+++ b/lib/utils/JsonFormatterPipe.ts
@@ -1,15 +1,17 @@
'use strict';
import { Pipe, PipeTransform } from '@angular/core';
import { isBlank } from '@angular/core/src/facade/lang';
+import { DomSanitizationService } from '@angular/platform-browser';
var level = 1;
const COLLAPSE_LEVEL = 2;
@Pipe({ name: 'jsonFormatter' })
export class JsonFormatter implements PipeTransform {
+ constructor(private sanitizer: DomSanitizationService) {}
transform(value) {
if (isBlank(value)) return value;
- return jsonToHTML(value);
+ return this.sanitizer.bypassSecurityTrustHtml(jsonToHTML(value));
}
}