Skip to content

Conversation

bep
Copy link
Member

@bep bep commented Jan 24, 2022

They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed.

Closes #4117

@bep bep added this to the v0.92.2 milestone Jan 28, 2022
They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed.

Closes gohugoio#4117
@bep bep force-pushed the work/remove-deprecated-page-methods branch from 7f3d5c9 to c94ddb9 Compare January 28, 2022 08:33
@bep bep modified the milestones: v0.92.2, v0.93.0 Feb 14, 2022
@bep bep merged commit 9563c7d into gohugoio:master Feb 14, 2022
@bep bep mentioned this pull request May 25, 2022
bep added a commit to bep/hugo that referenced this pull request May 25, 2022
This commit replaces the main part of `helpers.

```bash
BenchmarkStripHTMLOld-10    	  680316	      1764 ns/op	     728 B/op	       4 allocs/op
BenchmarkStripHTMLNew-10    	  384520	      3099 ns/op	    2089 B/op	      10 allocs/op
```

Fixes gohugoio#9419
Fixes gohugoio#9909
Closes gohugoio#9410
bep added a commit to bep/hugo that referenced this pull request May 25, 2022
This commit replaces the main part of `helpers.StripHTML` with Go's implementation in its html/template package.

It's a little slower, but correctness is more important:

```bash
BenchmarkStripHTMLOld-10    	  680316	      1764 ns/op	     728 B/op	       4 allocs/op
BenchmarkStripHTMLNew-10    	  384520	      3099 ns/op	    2089 B/op	      10 allocs/op
```

Fixes gohugoio#9419
Fixes gohugoio#9909
Closes gohugoio#9410
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate and then rename/remove Page.URL
1 participant