Repository navigation
Commit bba7c03
committed
Remove DOMPurify sanitization from website fetcher and fallback to document title
- sometimes a parsed website doesn't show its title in symbol but domain. while inspecting source code of the website we can see <title> being filled.
└── apps
└── editor
├── package.json
└── src
├── extension.ts
└── views
└── prompt
├── backend
│ ├── message-handlers
│ │ ├── handle-open-website.ts
│ │ ├── handle-paste-url.ts
│ │ └── index.ts
│ ├── prompt-view-provider.ts
│ └── utils
│ ├── persistent-text-storage.ts
│ ├── symbols
│ │ ├── replace-symbols.ts
│ │ └── website
│ │ └── replace-website-symbol.ts
│ └── website-fetcher.ts
├── frontend
│ ├── Main
│ │ ├── Main.tsx
│ │ └── MainView
│ │ └── MainView.tsx
│ ├── Prompt.tsx
│ └── hooks
│ └── use-prompt
│ └── use-prompt.ts
└── types
└── messages.ts1 parent f64e212 commit bba7c03
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 129 | + | |
134 | 130 | | |
135 | 131 | | |
136 | 132 | | |
| |||
183 | 179 | | |
184 | 180 | | |
185 | 181 | | |
186 | | - | |
| 182 | + | |
187 | 183 | | |
188 | 184 | | |
189 | 185 | | |
| |||
0 commit comments