You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -723,7 +723,7 @@ You can download the PDF and Epub version of this repository from the latest run
723
723
724
724
23. ### What happens if you use script tag inside template?
725
725
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.
727
727
728
728
Let's take an example of innerHtml property binding which causes XSS vulnerability,
729
729
```typescript
@@ -878,7 +878,7 @@ You can download the PDF and Epub version of this repository from the latest run
878
878
879
879
32. ### Give an example of custom pipe?
880
880
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
882
882
import { Pipe, PipeTransform } from '@angular/core';
883
883
884
884
@Pipe({name: 'customFileSizePipe'})
@@ -887,14 +887,14 @@ You can download the PDF and Epub version of this repository from the latest run
0 commit comments