Skip to content

Commit c3270bb

Browse files
authored
Merge pull request #190 from web-vision/task/add-task-template
Task/add task template
2 parents f39ea33 + 2b3bd53 commit c3270bb

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/ISSUE_TEMPLATE/task.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Task
3+
about: Create a report to help us improve
4+
title: "[TASK]"
5+
labels: 'task'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the task**
11+
A clear and concise description of what the task is.
12+
13+
**Expected behavior**
14+
A clear and concise description of what you expected to happen.
15+
16+
**Screenshots**
17+
If applicable, add screenshots to help explain your problem.
18+
19+
**TYPO3 Setup**
20+
* TYPO3 Version
21+
* Server (Apache-cgi/Apache-fpm/nginx-fm/other)
22+
* wv_deepltranslate version (2.x, 3.x, main)
23+
* Database type and version (SQLite/Postgres/MariaDB/MySQL)
24+
* PHP version
25+
* DeepL free or paid API?
26+
* composer or classic setup?
27+
28+
**Additional context**
29+
Add any other context about the problem here.

Classes/Hooks/TranslateHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function translateContent(
144144
if (!empty($response) && isset($response['translations'])) {
145145
foreach ($response['translations'] as $translation) {
146146
if ($translation['text'] != '') {
147-
$content = $translation['text'];
147+
$content = htmlspecialchars_decode($translation['text'], ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5);
148148
break;
149149
}
150150
}

0 commit comments

Comments
 (0)