Skip to content

Commit c773f88

Browse files
authored
Merge pull request sudheerj#25 from yuvgeek/master
fix format in Readme
2 parents 5bed2d8 + 7dd2d89 commit c773f88

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ You can download the PDF and Epub version of this repository from the latest run
723723
724724
23. ### What happens if you use script tag inside template?
725725
726-
Angular recognizes the value as unsafe and automatically sanitizes it, which removes the **<script>** tag but keeps safe content such as the text content of the <script> tag. This way it eliminates the risk of script injection attacks. If you still use it then it will be ignored and a warning appears in the browser console.
726+
Angular recognizes the value as unsafe and automatically sanitizes it, which removes the `script` tag but keeps safe content such as the text content of the `script` tag. This way it eliminates the risk of script injection attacks. If you still use it then it will be ignored and a warning appears in the browser console.
727727
728728
Let's take an example of innerHtml property binding which causes XSS vulnerability,
729729
```typescript
@@ -878,7 +878,7 @@ You can download the PDF and Epub version of this repository from the latest run
878878
879879
32. ### Give an example of custom pipe?
880880
You can create custom reusable pipes for the transformation of existing value. For example, let us create a custom pipe for finding file size based on an extension,
881-
```javascript
881+
```javascript
882882
import { Pipe, PipeTransform } from '@angular/core';
883883
884884
@Pipe({name: 'customFileSizePipe'})
@@ -887,14 +887,14 @@ You can download the PDF and Epub version of this repository from the latest run
887887
return (size / (1024 * 1024)).toFixed(2) + extension;
888888
}
889889
}
890-
```
890+
```
891891
Now you can use the above pipe in template expression as below,
892-
```javascript
892+
```javascript
893893
template: `
894894
<h2>Find the size of a file</h2>
895895
<p>Size: {{288966 | customFileSizePipe: 'GB'}}</p>
896896
`
897-
```
897+
```
898898
899899
**[⬆ Back to Top](#table-of-contents)**
900900

0 commit comments

Comments
 (0)