Проблема вывода угловых таблиц html-сущностей
У меня есть текст в моей БД. Вывод наподобие {{ roll.Text }} Проблема в том, есть ли вывод с html-объектами.. если у меня<h2>Text</h2>
в моем html мне нужен текст.
Мой код:
<script>
angular.module('sortApp', [])
.controller('mainController', function ($scope) {
$scope.sortType = 'name'; // set the default sort type
$scope.sortReverse = false; // set the default sort order
$scope.searchFish = ''; // set the default search/filter term
// create the list of edit rolls
$scope.edit = [
<?php
while($row_post = $result_post->fetch_assoc()) {
$plant_id = $row_post['plant_id'];
$titel= $row_post['name'];
$text = $row_post['beschreibung'];
$datum = $row_post['datum'];
$del = $row_post['del'];
$uid = $_SESSION['id'];
?>
{ID: '<?php echo $plant_id ?>', Titel: '<?php echo $titel; ?>', Text: '<?php echo $text; ?>', Datum: '<?php echo date("j.m.Y", $datum) ?>',
Del: '<?php echo $del; ?>', UID: '<?php echo $uid ?>'},
<?php } ?>
];
});
</script>
<textarea class="uk-textarea" rows="5" name="beschreibung" id="editor" style="min-height: 150px;" required>{{ roll.Text }}</textarea>